chiark / gitweb /
Octal numbers 0600 to 0o600
authorNeroBurner <pyro4hell@gmail.com>
Thu, 17 Sep 2015 11:29:06 +0000 (13:29 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 29 Dec 2015 19:10:04 +0000 (20:10 +0100)
fdroidserver/common.py

index 2e1ff2cc4e20151aa35a429d78c4c7acd532cda1..272284cf37312d7cc1a86541c7d4392d6eae777f 100644 (file)
@@ -295,7 +295,7 @@ def write_password_file(pwtype, password=None):
     command line argments
     '''
     filename = '.fdroid.' + pwtype + '.txt'
-    fd = os.open(filename, os.O_CREAT | os.O_TRUNC | os.O_WRONLY, 0600)
+    fd = os.open(filename, os.O_CREAT | os.O_TRUNC | os.O_WRONLY, 0o600)
     if password is None:
         os.write(fd, config[pwtype])
     else: