diff options
Diffstat (limited to 'Lib/reprlib.py')
| -rw-r--r-- | Lib/reprlib.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Lib/reprlib.py b/Lib/reprlib.py index f8033604da..b7fda23bd8 100644 --- a/Lib/reprlib.py +++ b/Lib/reprlib.py @@ -136,7 +136,7 @@ class Repr:              # Bugs in x.__repr__() can cause arbitrary              # exceptions -- then make up something          except Exception: -            return '<%s instance at %x>' % (x.__class__.__name__, id(x)) +            return '<%s instance at %#x>' % (x.__class__.__name__, id(x))          if len(s) > self.maxother:              i = max(0, (self.maxother-3)//2)              j = max(0, self.maxother-3-i) | 
