]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #21770: Call function instead of module. Patch by Claudiu Popa.
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 20 Jun 2014 21:49:10 +0000 (17:49 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 20 Jun 2014 21:49:10 +0000 (17:49 -0400)
Lib/test/script_helper.py

index 555934966a61dcabd58f2e81cc9d24d7653c8a7b..a7bb0d51b24de5dbff72fb866b45923965f00625 100644 (file)
@@ -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))