change mode to octal for os.makedirs()

Partial implements: blueprint py33-support

Change-Id: I7a4307dfd526821e96b5c04ff636e650f20b753a
This commit is contained in:
Kui Shi
2013-10-15 06:09:18 +08:00
parent 6a2592ac48
commit 502f7113a8

View File

@@ -108,7 +108,7 @@ class Manager(utils.HookableMixin):
cache_dir = os.path.expanduser(os.path.join(base_dir, uniqifier))
try:
os.makedirs(cache_dir, 0755)
os.makedirs(cache_dir, 0o755)
except OSError:
# NOTE(kiall): This is typicaly either permission denied while
# attempting to create the directory, or the directory