Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa30669

Browse files
committed
correct changed import
1 parent 6c940d6 commit aa30669

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/reprlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
118118
the handling of types already supported. This example shows how special support
119119
for file objects could be added::
120120

121-
import repr
121+
import reprlib
122122
import sys
123123

124-
class MyRepr(repr.Repr):
124+
class MyRepr(reprlib.Repr):
125125
def repr_file(self, obj, level):
126126
if obj.name in ['<stdin>', '<stdout>', '<stderr>']:
127127
return obj.name

0 commit comments

Comments
 (0)