mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-01 19:34:43 +00:00
Merge pull request #233 from cjmayo/python3_05a
{python3_05a} Use Python 3 compatible octal masks
This commit is contained in:
commit
cfd81031d1
2 changed files with 2 additions and 2 deletions
|
|
@ -403,7 +403,7 @@ def make_userdir(child):
|
|||
# Windows forbids filenames with leading dot unless
|
||||
# a trailing dot is added.
|
||||
userdir += "."
|
||||
os.makedirs(userdir, 0700)
|
||||
os.makedirs(userdir, 0o700)
|
||||
|
||||
|
||||
def get_user_config():
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class BlacklistLogger (_Logger):
|
|||
"""
|
||||
Write the blacklist.
|
||||
"""
|
||||
oldmask = os.umask(0077)
|
||||
oldmask = os.umask(0o077)
|
||||
for key, value in self.blacklist.items():
|
||||
self.write(u"%d %s%s" % (value, repr(key), os.linesep))
|
||||
self.close_fileoutput()
|
||||
|
|
|
|||
Loading…
Reference in a new issue