summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorLuke Diamand <luke@diamand.org>2018-06-19 08:04:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-19 16:34:31 (GMT)
commitfc35c9d5dc8fefbc29e9713e6b47eb4c19579d56 (patch)
tree8816daeaab20cee058ec4439caadfcfc87b60f07 /git-p4.py
parentf0ac6e39433c1d7e9339207aa4d01e9bf7a05b8a (diff)
downloadgit-fc35c9d5dc8fefbc29e9713e6b47eb4c19579d56.zip
git-fc35c9d5dc8fefbc29e9713e6b47eb4c19579d56.tar.gz
git-fc35c9d5dc8fefbc29e9713e6b47eb4c19579d56.tar.bz2
git-p4: python3: replace <> with !=
The <> string inequality operator (which doesn't seem to be even documented) no longer exists in python3. Replace with !=. This still works with python2. 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 0354d4d..51e9e64 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -3590,7 +3590,7 @@ class P4Sync(Command, P4UserMap):
prev_list = prev.split("/")
cur_list = cur.split("/")
for i in range(0, min(len(cur_list), len(prev_list))):
- if cur_list[i] <> prev_list[i]:
+ if cur_list[i] != prev_list[i]:
i = i - 1
break