summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 20:41:38 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2014-05-01 21:41:46 -0700
commit7af04431c60a81f58d9c0521353b71c84ee5a568 (patch)
treee8beaa9bd5e90bf16dc0f99d412851a57ee415d6
parent3fd240df6f08b651c4a9123835022b586c852a1e (diff)
downloadgobject-introspection-7af04431c60a81f58d9c0521353b71c84ee5a568.tar.gz
giscanner: Use Python 3 compatible octal literal syntax
https://bugzilla.gnome.org/show_bug.cgi?id=679438
-rw-r--r--giscanner/cachestore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index 27b260f5..3d8e6fd6 100644
--- a/giscanner/cachestore.py
+++ b/giscanner/cachestore.py
@@ -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