summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zipfile.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-15 21:32:30 (GMT)
committerBrett Cannon <brett@python.org>2013-06-15 21:32:30 (GMT)
commitb57a085c74291066a70e3d4a591cba34c068e785 (patch)
tree4400b6801482b0dfbe89966dffd53b4e1f277cf6 /Lib/test/test_zipfile.py
parent9529fbfd363959ee4e33baeebcc6c3bc0252b42c (diff)
downloadcpython-b57a085c74291066a70e3d4a591cba34c068e785.zip
cpython-b57a085c74291066a70e3d4a591cba34c068e785.tar.gz
cpython-b57a085c74291066a70e3d4a591cba34c068e785.tar.bz2
Issue #17177: Stop using imp in zipfile
Diffstat (limited to 'Lib/test/test_zipfile.py')
-rw-r--r--Lib/test/test_zipfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
index 188a307..d3a359f 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -1,7 +1,7 @@
import io
import os
import sys
-import imp
+import importlib.util
import time
import shutil
import struct
@@ -869,7 +869,7 @@ class PyZipFileTests(unittest.TestCase):
if os.altsep is not None:
path_split.extend(fn.split(os.altsep))
if '__pycache__' in path_split:
- fn = imp.source_from_cache(fn)
+ fn = importlib.util.source_from_cache(fn)
else:
fn = fn[:-1]