diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-02-09 23:28:07 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-02-09 23:28:07 (GMT) |
commit | 6f8ee59653261731d73f0e16bd3f667db57133bd (patch) | |
tree | 5c9ebd322103bd4e56be95374a38e15e1b5b6183 /Lib/pdb.py | |
parent | 8af6b83e61f1f5b4501968b77a17ad6ef96984c4 (diff) | |
download | cpython-6f8ee59653261731d73f0e16bd3f667db57133bd.zip cpython-6f8ee59653261731d73f0e16bd3f667db57133bd.tar.gz cpython-6f8ee59653261731d73f0e16bd3f667db57133bd.tar.bz2 |
SF bug #131560: pdb imports 'repr', causing name collision
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ import sys import linecache import cmd import bdb -import repr +from repr import repr as _saferepr import os import re @@ -124,7 +124,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): if type(exc_type) == type(''): exc_type_name = exc_type else: exc_type_name = exc_type.__name__ - print exc_type_name + ':', repr.repr(exc_value) + print exc_type_name + ':', _saferepr(exc_value) self.interaction(frame, exc_traceback) # General interaction function |