summaryrefslogtreecommitdiffstats
path: root/git-p4.py
diff options
context:
space:
mode:
authorLuke Diamand <luke@diamand.org>2018-06-19 10:04:11 +0200
committerJunio C Hamano <gitster@pobox.com>2018-06-19 18:34:32 +0200
commitdb2d997efa43596fe5860d1b1c0c410e99d96f67 (patch)
treea0fdd1437353a2b8324a1904e29c8939f64df807 /git-p4.py
parentgit-p4: python3: use print() function (diff)
downloadgit-db2d997efa43596fe5860d1b1c0c410e99d96f67.tar.xz
git-db2d997efa43596fe5860d1b1c0c410e99d96f67.zip
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>
Diffstat (limited to 'git-p4.py')
-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":