python-modernize -f lib2to3.fixes.fix_numliterals

This commit is contained in:
Tomas Kopecek 2018-07-02 10:40:51 +02:00 committed by Mike McLean
parent 6f7f828f77
commit d9ac4ed85c

View file

@ -883,7 +883,7 @@ class BuildTracker(object):
if options.link_imports:
#bit of a hack, but faster than uploading
dst = "%s/%s/%s" % (koji.pathinfo.work(), serverdir, fn)
old_umask = os.umask(002)
old_umask = os.umask(0o02)
try:
koji.ensuredir(os.path.dirname(dst))
os.chown(os.path.dirname(dst), 48, 48) #XXX - hack
@ -1302,7 +1302,7 @@ def main(args):
if options.logfile:
filename = options.logfile
try:
logfile = os.open(filename,os.O_CREAT|os.O_RDWR|os.O_APPEND, 0777)
logfile = os.open(filename,os.O_CREAT|os.O_RDWR|os.O_APPEND, 0o777)
except:
logfile = None
if logfile is not None: