diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-04-28 20:41:38 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-05-01 21:41:46 -0700 |
commit | 7af04431c60a81f58d9c0521353b71c84ee5a568 (patch) | |
tree | e8beaa9bd5e90bf16dc0f99d412851a57ee415d6 /giscanner/cachestore.py | |
parent | 3fd240df6f08b651c4a9123835022b586c852a1e (diff) | |
download | gobject-introspection-7af04431c60a81f58d9c0521353b71c84ee5a568.tar.gz |
giscanner: Use Python 3 compatible octal literal syntax
https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r-- | giscanner/cachestore.py | 4 |
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 |