From ed3c369642eecacef5bc1ae53f7821f671af1549 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Fri, 25 Jul 2014 17:11:48 -0700 Subject: [PATCH] Revert additional modifications to std lib shutil module Take advantage of new features. --- lib-python/3.2/shutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-python/3.2/shutil.py b/lib-python/3.2/shutil.py index 7d9ce8610f16..4e138a71b942 100644 --- a/lib-python/3.2/shutil.py +++ b/lib-python/3.2/shutil.py @@ -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() @@ -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()