Merge pull request #221 from cjmayo/python3_11

{python3_11} Python3: fix permission mask in test_file
This commit is contained in:
anarcat 2019-04-11 11:46:28 -04:00 committed by GitHub
commit 0d35cf959d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ def unzip (filename, targetdir):
zf = zipfile.ZipFile(filename)
for name in zf.namelist():
if name.endswith('/'):
os.mkdir(os.path.join(targetdir, name), 0700)
os.mkdir(os.path.join(targetdir, name), 0o700)
else:
outfile = open(os.path.join(targetdir, name), 'wb')
try: