Commit 7af04431 authored by Simon Feltman's avatar Simon Feltman
Browse files

giscanner: Use Python 3 compatible octal literal syntax

https://bugzilla.gnome.org/show_bug.cgi?id=679438
parent 3fd240df
......@@ -54,14 +54,14 @@ def _get_cachedir():
cachedir = os.path.join(homedir, '.cache')
if not os.path.exists(cachedir):
try:
os.mkdir(cachedir, 0755)
os.mkdir(cachedir, 0o755)
except OSError:
return None
scannerdir = os.path.join(cachedir, 'g-ir-scanner')
if not os.path.exists(scannerdir):
try:
os.mkdir(scannerdir, 0755)
os.mkdir(scannerdir, 0o755)
except OSError:
return None
# If it exists and is a file, don't cache at all
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment