diff options
author | Guido van Rossum <guido@python.org> | 1998-03-26 20:56:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-26 20:56:10 (GMT) |
commit | 8ca842066c947179892d50bf17b57943e7e5cd6b (patch) | |
tree | 36f095712bb110abdb9d129e8a59a09e4ce8d087 /Lib/copy.py | |
parent | fa6e254b34b7a0f85cb34a9fd99b5a6400714940 (diff) | |
download | cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.zip cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.tar.gz cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.tar.bz2 |
A few lines were indented using spaces instead of tabs -- fix them.
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index 1bdd4e1..b481d29 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -198,20 +198,20 @@ def _deepcopy_dict(x, memo): d[types.DictionaryType] = _deepcopy_dict def _keep_alive(x, memo): - """Keeps a reference to the object x in the memo. - - Because we remember objects by their id, we have - to assure that possibly temporary objects are kept - alive by referencing them. - We store a reference at the id of the memo, which should - normally not be used unless someone tries to deepcopy - the memo itself... - """ - try: - memo[id(memo)].append(x) - except KeyError: - # aha, this is the first one :-) - memo[id(memo)]=[x] + """Keeps a reference to the object x in the memo. + + Because we remember objects by their id, we have + to assure that possibly temporary objects are kept + alive by referencing them. + We store a reference at the id of the memo, which should + normally not be used unless someone tries to deepcopy + the memo itself... + """ + try: + memo[id(memo)].append(x) + except KeyError: + # aha, this is the first one :-) + memo[id(memo)]=[x] def _deepcopy_inst(x, memo): if hasattr(x, '__deepcopy__'): |