[gobject-introspection] giscanner: Use Python 3 compatible octal literal syntax
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: Use Python 3 compatible octal literal syntax
- Date: Fri, 2 May 2014 04:45:00 +0000 (UTC)
commit 7af04431c60a81f58d9c0521353b71c84ee5a568
Author: Simon Feltman <sfeltman src gnome org>
Date: Mon Apr 28 20:41:38 2014 -0700
giscanner: Use Python 3 compatible octal literal syntax
https://bugzilla.gnome.org/show_bug.cgi?id=679438
giscanner/cachestore.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index 27b260f..3d8e6fd 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]