Discussion:
[Python-3000-checkins] r66897 - python/branches/py3k/Doc/library/reprlib.rst
benjamin.peterson
2008-10-15 03:09:46 UTC
Permalink
Author: benjamin.peterson
Date: Wed Oct 15 05:09:45 2008
New Revision: 66897

Log:
correct changed import

Modified:
python/branches/py3k/Doc/library/reprlib.rst

Modified: python/branches/py3k/Doc/library/reprlib.rst
==============================================================================
--- python/branches/py3k/Doc/library/reprlib.rst (original)
+++ python/branches/py3k/Doc/library/reprlib.rst Wed Oct 15 05:09:45 2008
@@ -118,10 +118,10 @@
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

Loading...