diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-15 03:09:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-15 03:09:45 (GMT) |
commit | aa3066925acdd5ff3b709043138b2ff6ef53c5dd (patch) | |
tree | 091768a89a5b0208796ccb48dca1ccde338d0b81 /Doc/library/reprlib.rst | |
parent | 6c940d6159d6f0a21f664b58b3aa0098041203e1 (diff) | |
download | cpython-aa3066925acdd5ff3b709043138b2ff6ef53c5dd.zip cpython-aa3066925acdd5ff3b709043138b2ff6ef53c5dd.tar.gz cpython-aa3066925acdd5ff3b709043138b2ff6ef53c5dd.tar.bz2 |
correct changed import
Diffstat (limited to 'Doc/library/reprlib.rst')
-rw-r--r-- | Doc/library/reprlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/reprlib.rst b/Doc/library/reprlib.rst index aad6f66..c1364a3 100644 --- a/Doc/library/reprlib.rst +++ b/Doc/library/reprlib.rst @@ -118,10 +118,10 @@ The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of the handling of types already supported. This example shows how special support for file objects could be added:: - import repr + import reprlib import sys - class MyRepr(repr.Repr): + class MyRepr(reprlib.Repr): def repr_file(self, obj, level): if obj.name in ['<stdin>', '<stdout>', '<stderr>']: return obj.name |