diff --git a/gracedb/core/vfile.py b/gracedb/core/vfile.py index aaa1f9d52872a721dee5b70f7085a99685beb018..c451e6b7fafb834f908a1b61b7e2bb6f339a8051 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.