summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorLuke Diamand <luke@diamand.org>2018-06-19 08:04:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-19 16:34:32 (GMT)
commitdb2d997efa43596fe5860d1b1c0c410e99d96f67 (patch)
treea0fdd1437353a2b8324a1904e29c8939f64df807 /git-p4.py
parentf2606b1797fdffe40b00a6766ca1df6e1e0f3a60 (diff)
downloadgit-db2d997efa43596fe5860d1b1c0c410e99d96f67.zip
git-db2d997efa43596fe5860d1b1c0c410e99d96f67.tar.gz
git-db2d997efa43596fe5860d1b1c0c410e99d96f67.tar.bz2
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 714e442..b449db1 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":