Skip to content

Commit

Permalink
Revert additional modifications to std lib shutil module
Browse files Browse the repository at this point in the history
Take advantage of new features.
  • Loading branch information
JukkaL committed Jul 26, 2014
1 parent 818c6ec commit ed3c369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib-python/3.2/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def copytree(src: str, dst: str, symlinks: bool = False,
"""
names = os.listdir(src)
if ignore is not None:
ignored_names = set(ignore(src, names)) # see #203
ignored_names = ignore(src, names)
else:
ignored_names = set()

Expand Down Expand Up @@ -718,7 +718,7 @@ def _unpack_zipfile(filename: str, extract_dir: str) -> None:
f.write(data)
finally:
f.close()
data = None
del data
finally:
zip.close()

Expand Down

0 comments on commit ed3c369

Please sign in to comment.