mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
Changed references to the reprlib module to use its new name.
This commit is contained in:
parent
95d97c7390
commit
50a1acb2ab
12 changed files with 28 additions and 29 deletions
19
Lib/copy.py
19
Lib/copy.py
|
@ -399,17 +399,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue