summaryrefslogtreecommitdiffstats
path: root/Lib/copy.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 07:12:44 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 07:12:44 (GMT)
commit1f2ba4b6dad80f97aeecb5be8f35f44ca792c983 (patch)
treedc2c356b160e3769dc758b55f72eba4bdf2ec652 /Lib/copy.py
parentcdc11337a221d45d40989bc256dd6cd0eb4b6371 (diff)
downloadcpython-1f2ba4b6dad80f97aeecb5be8f35f44ca792c983.zip
cpython-1f2ba4b6dad80f97aeecb5be8f35f44ca792c983.tar.gz
cpython-1f2ba4b6dad80f97aeecb5be8f35f44ca792c983.tar.bz2
Rename the repr module to reprlib.
Merged revisions 63357 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r63357 | alexandre.vassalotti | 2008-05-16 02:58:49 -0400 (Fri, 16 May 2008) | 2 lines Changed references to the reprlib module to use its new name. ........
Diffstat (limited to 'Lib/copy.py')
-rw-r--r--Lib/copy.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/Lib/copy.py b/Lib/copy.py
index 899ee4d..a334b79 100644
--- a/Lib/copy.py
+++ b/Lib/copy.py
@@ -354,17 +354,16 @@ def _test():
print(l2)
l.append({l[1]: l, 'xyz': l[2]})
l3 = copy(l)
- import repr
- print(map(repr.repr, l))
- print(map(repr.repr, l1))
- print(map(repr.repr, l2))
- print(map(repr.repr, l3))
+ import reprlib
+ print(map(reprlib.repr, l))
+ print(map(reprlib.repr, l1))
+ print(map(reprlib.repr, l2))
+ print(map(reprlib.repr, l3))
l3 = deepcopy(l)
- import repr
- print(map(repr.repr, l))
- print(map(repr.repr, l1))
- print(map(repr.repr, l2))
- print(map(repr.repr, l3))
+ print(map(reprlib.repr, l))
+ print(map(reprlib.repr, l1))
+ print(map(reprlib.repr, l2))
+ print(map(reprlib.repr, l3))
if __name__ == '__main__':
_test()