From de66251a0d0bf35460c90c4b08a4e53115ceda8b Mon Sep 17 00:00:00 2001
From: Duncan Macleod <duncan.macleod@ligo.org>
Date: Thu, 25 Apr 2019 20:47:53 +0100
Subject: [PATCH] gracedb.core: updated octal for python3

---
 gracedb/core/vfile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gracedb/core/vfile.py b/gracedb/core/vfile.py
index aaa1f9d52..c451e6b7f 100644
--- a/gracedb/core/vfile.py
+++ b/gracedb/core/vfile.py
@@ -122,7 +122,7 @@ class VersionedFile(file):
                 # os.O_EXCL causes the open to fail if the file already exists.
                 fd = os.open(actual_name,
                         os.O_WRONLY | os.O_CREAT | os.O_EXCL,
-                        0644)
+                        0o644)
                 # re-open
                 file.__init__(self, actual_name, *args, **kwargs)
                 # lose fd we used to ensure file creation.
-- 
GitLab