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>
This commit is contained in:
Luke Diamand 2018-06-19 09:04:11 +01:00 committed by Junio C Hamano
parent f2606b1797
commit db2d997efa

View file

@ -1841,7 +1841,7 @@ def applyCommit(self, id):
filesToDelete.remove(path)
dst_mode = int(diff['dst_mode'], 8)
if dst_mode == 0120000:
if dst_mode == 0o120000:
symlinks.add(path)
elif modifier == "D":