1. Atsushi Odagiri
  2. pyzaa

Commits

Atsushi Odagiri  committed a1e2f59

file function is deperecated in py3.

  • Participants
  • Parent commits 5ad9ea9
  • Branches fix-py33

Comments (0)

Files changed (1)

File pyzaa.py

View file
                         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'))