summaryrefslogtreecommitdiff
path: root/Lib/test/script_helper.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2014-06-21 13:59:25 +0200
committerGiampaolo Rodola' <g.rodola@gmail.com>2014-06-21 13:59:25 +0200
commit47177861dd7995b4cd27acb9757f0e804e3f06e4 (patch)
tree786e2e6c3ee8790b32123b4c203ca14826036cc2 /Lib/test/script_helper.py
parentbd0487694c0ce55ae9d425fe9e13e21878a7d6dc (diff)
parentca7e5d3e1dd2ac82abfa425817180cdc7985d3de (diff)
downloadcpython-git-47177861dd7995b4cd27acb9757f0e804e3f06e4.tar.gz
merge heads
Diffstat (limited to 'Lib/test/script_helper.py')
-rw-r--r--Lib/test/script_helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/script_helper.py b/Lib/test/script_helper.py
index 555934966a..a7bb0d51b2 100644
--- a/Lib/test/script_helper.py
+++ b/Lib/test/script_helper.py
@@ -155,8 +155,8 @@ def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,
script_name = make_script(zip_dir, script_basename, source)
unlink.append(script_name)
if compiled:
- init_name = py_compile(init_name, doraise=True)
- script_name = py_compile(script_name, doraise=True)
+ init_name = py_compile.compile(init_name, doraise=True)
+ script_name = py_compile.compile(script_name, doraise=True)
unlink.extend((init_name, script_name))
pkg_names = [os.sep.join([pkg_name]*i) for i in range(1, depth+1)]
script_name_in_zip = os.path.join(pkg_names[-1], os.path.basename(script_name))