diff options
author | Jeremy Heiner <scalaprotractor@gmail.com> | 2013-10-12 18:44:32 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-14 05:01:15 +0200 |
commit | 071ba05534f1e5f3eee3435214caa2642e3e2c23 (patch) | |
tree | 73dd805484e42cd3e6ecad713b7a1067c35a8843 /test/pacman/util.py | |
parent | 4d24da8cda18cdb1e7a69baec196ad502d4d12de (diff) | |
download | pacman-071ba05534f1e5f3eee3435214caa2642e3e2c23.tar.gz pacman-071ba05534f1e5f3eee3435214caa2642e3e2c23.tar.xz |
Use Python's "0o#" octal literal instead of deprecated "0#".
Reported as a compatibility issue by 2to3.
Signed-off-by: Jeremy Heiner <ScalaProtractor@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/util.py')
-rw-r--r-- | test/pacman/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pacman/util.py b/test/pacman/util.py index 14035d76..c1ab390e 100644 --- a/test/pacman/util.py +++ b/test/pacman/util.py @@ -84,12 +84,12 @@ def mkfile(base, name, data=""): path = os.path.join(base, filename) if info["isdir"]: if not os.path.isdir(path): - os.makedirs(path, 0755) + os.makedirs(path, 0o755) return dir_path = os.path.dirname(path) if dir_path and not os.path.isdir(dir_path): - os.makedirs(dir_path, 0755) + os.makedirs(dir_path, 0o755) if info["islink"]: os.symlink(info["link"], path) @@ -182,6 +182,6 @@ def mkdir(path): return elif os.path.isfile(path): raise OSError("'%s' already exists and is not a directory" % path) - os.makedirs(path, 0755) + os.makedirs(path, 0o755) # vim: set ts=4 sw=4 et: |