mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
At Jim Fulton's request, increase the maxstring value of _saferepr to
a more reasonable value. Backport candidate.
This commit is contained in:
parent
1b5112ac97
commit
ef1b41ba0a
1 changed files with 7 additions and 1 deletions
|
|
@ -8,10 +8,16 @@
|
|||
import linecache
|
||||
import cmd
|
||||
import bdb
|
||||
from repr import repr as _saferepr
|
||||
from repr import Repr
|
||||
import os
|
||||
import re
|
||||
|
||||
# Create a custom safe Repr instance and increase its maxstring.
|
||||
# The default of 30 truncates error messages too easily.
|
||||
_repr = Repr()
|
||||
_repr.maxstring = 200
|
||||
_saferepr = _repr.repr
|
||||
|
||||
__all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace",
|
||||
"post_mortem", "help"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue