Port more code to Python3
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user