jenkins-bot has submitted this change and it was merged.
Change subject: Use new octal syntax ......................................................................
Use new octal syntax
Change-Id: I9f6fbfef1c2cb7ea453a25b8a8c36990950f8000 --- M pywikibot/config2.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index c758295..25df6d2 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -139,7 +139,7 @@ else: base_dir = os.path.join(home, "." + NAME) if not os.path.isdir(base_dir): - os.makedirs(base_dir, mode=0700) + os.makedirs(base_dir, mode=0o700) if not os.path.isabs(base_dir): base_dir = os.path.normpath(os.path.join(os.getcwd(), base_dir)) # make sure this path is valid and that it contains user-config file @@ -671,7 +671,7 @@ _filemode = _filestatus[0] _fileuid = _filestatus[4] if __sys.platform == 'win32' or _fileuid in [os.getuid(), 0]: - if __sys.platform == 'win32' or _filemode & 002 == 0 or True: + if __sys.platform == 'win32' or _filemode & 0o02 == 0 or True: execfile(_filename) else: print "WARNING: Skipped '%(fn)s': writeable by others." \
pywikibot-commits@lists.wikimedia.org