diff options
author | Guido van Rossum <guido@python.org> | 2002-09-10 21:57:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-09-10 21:57:14 (GMT) |
commit | ef1b41ba0a80fb38904ea00669c769cd9556b051 (patch) | |
tree | c8dff6b84f9f23f65cd72b9314bcbd44ed307b3d /Lib/pdb.py | |
parent | 1b5112ac97745d9a48bc91771ec84d5d415eeba6 (diff) | |
download | cpython-ef1b41ba0a80fb38904ea00669c769cd9556b051.zip cpython-ef1b41ba0a80fb38904ea00669c769cd9556b051.tar.gz cpython-ef1b41ba0a80fb38904ea00669c769cd9556b051.tar.bz2 |
At Jim Fulton's request, increase the maxstring value of _saferepr to
a more reasonable value.
Backport candidate.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -8,10 +8,16 @@ import sys 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"] |