Commits

Atsushi Odagiri committed a1e2f59

file function is deperecated in py3.

Comments (0)

Files changed (1)

                         os.path.join(path, nm), os.path.join(zippath, nm))
         # else: ignore
     
-    with file(filename, "wb+") as archive:
+    with open(filename, "wb+") as archive:
         archive.write(("#!"+python).encode(sys.getfilesystemencoding()))
         archive.write("\n# This is a ZIP-archived Python application created with pyzaa.\n".encode('utf-8'))