summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmpkg.py
diff options
context:
space:
mode:
authorJeremy Heiner <scalaprotractor@gmail.com>2013-10-12 18:44:32 +0200
committerAllan McRae <allan@archlinux.org>2013-10-14 05:01:15 +0200
commit071ba05534f1e5f3eee3435214caa2642e3e2c23 (patch)
tree73dd805484e42cd3e6ecad713b7a1067c35a8843 /test/pacman/pmpkg.py
parent4d24da8cda18cdb1e7a69baec196ad502d4d12de (diff)
downloadpacman-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/pmpkg.py')
-rw-r--r--test/pacman/pmpkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py
index 9b3147a3..24ef1e2b 100644
--- a/test/pacman/pmpkg.py
+++ b/test/pacman/pmpkg.py
@@ -161,7 +161,7 @@ class pmpkg(object):
if fileinfo["hasperms"]:
info.mode = fileinfo["perms"]
elif fileinfo["isdir"]:
- info.mode = 0755
+ info.mode = 0o755
if fileinfo["isdir"]:
info.type = tarfile.DIRTYPE
tar.addfile(info)