From daddf7c51921e673dd0b20fac9b7d26a9e1df36a Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 1 Nov 2015 08:10:29 -0800 Subject: [PATCH] Apply Python 3 futurize transform lib2to3.fixes.fix_numliterals. --- zerver/lib/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/cache.py b/zerver/lib/cache.py index 5509ba7d46..904bd32908 100644 --- a/zerver/lib/cache.py +++ b/zerver/lib/cache.py @@ -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: