From: Benjamin Peterson Date: Wed, 15 Oct 2008 03:09:45 +0000 (+0000) Subject: correct changed import X-Git-Tag: v3.0rc2~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa3066925acdd5ff3b709043138b2ff6ef53c5dd;p=python correct changed import --- diff --git a/Doc/library/reprlib.rst b/Doc/library/reprlib.rst index aad6f66034..c1364a3710 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 ['', '', '']: return obj.name