summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/configure.d/nodedownload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/configure.d/nodedownload.py b/tools/configure.d/nodedownload.py
index 5cf8e0dbd6..3f4bc090f7 100644
--- a/tools/configure.d/nodedownload.py
+++ b/tools/configure.d/nodedownload.py
@@ -60,7 +60,7 @@ def unpack(packedfile, parent_path):
icuzip.extractall(parent_path)
return parent_path
elif tarfile.is_tarfile(packedfile):
- with tarfile.TarFile.open(packedfile, 'r') as icuzip:
+ with contextlib.closing(tarfile.TarFile.open(packedfile, 'r')) as icuzip:
print ' Extracting tarfile: %s' % packedfile
icuzip.extractall(parent_path)
return parent_path