summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Luke Diamand <luke@diamand.org>2018-06-19 09:04:11 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-19 09:34:32 -0700
commitdb2d997efa43596fe5860d1b1c0c410e99d96f67 (patch)
treea0fdd1437353a2b8324a1904e29c8939f64df807
parentgit-p4: python3: use print() function (diff)
downloadtgif-db2d997efa43596fe5860d1b1c0c410e99d96f67.tar.xz
git-p4: python3: fix octal constants
See PEP3127. Works fine with python2 as well. Signed-off-by: Luke Diamand <luke@diamand.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-p4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index 714e442d7c..b449db1cc9 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -1841,7 +1841,7 @@ class P4Submit(Command, P4UserMap):
filesToDelete.remove(path)
dst_mode = int(diff['dst_mode'], 8)
- if dst_mode == 0120000:
+ if dst_mode == 0o120000:
symlinks.add(path)
elif modifier == "D":