Port more code to Python3 master
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 4 Feb 2019 15:27:45 +0000 (16:27 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 4 Feb 2019 15:27:45 +0000 (16:27 +0100)
master_unpack.py

index ea00f06..4cf7b7b 100644 (file)
@@ -130,7 +130,7 @@ else:
 try:
     filename = os.path.join(directory, packagename)
     zf = z.open(package)
-    f = file(filename, "wb")
+    f = open(filename, "wb")
 
     shutil.copyfileobj(zf, f)
     os.chmod(filename, 0o644)