Apply Python 3 futurize transform lib2to3.fixes.fix_numliterals.

This commit is contained in:
Tim Abbott 2015-11-01 08:10:29 -08:00
parent 2398a370e2
commit daddf7c519
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def get_or_create_key_prefix():
filename = os.path.join(settings.DEPLOY_ROOT, "memcached_prefix")
try:
fd = os.open(filename, os.O_CREAT | os.O_EXCL | os.O_RDWR, 0444)
fd = os.open(filename, os.O_CREAT | os.O_EXCL | os.O_RDWR, 0o444)
prefix = base64.b16encode(hashlib.sha256(str(random.getrandbits(256))).digest())[:32].lower() + ':'
# This does close the underlying file
with os.fdopen(fd, 'w') as f: