git-p4: python3: replace <> with !=
authorLuke Diamand <luke@diamand.org>
Tue, 19 Jun 2018 08:04:06 +0000 (09:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jun 2018 16:34:31 +0000 (09:34 -0700)
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>
git-p4.py

index 0354d4d..51e9e64 100755 (executable)
--- 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