]> granicus.if.org Git - python/commitdiff
correct changed import
authorBenjamin Peterson <benjamin@python.org>
Wed, 15 Oct 2008 03:09:45 +0000 (03:09 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 15 Oct 2008 03:09:45 +0000 (03:09 +0000)
Doc/library/reprlib.rst

index aad6f6603432bf3a830179a3e363cc31c80fde8c..c1364a371020c6702b84bb78388ce03a8646f25c 100644 (file)
@@ -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