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 0354d4df5cadd5145245d755a8868608b849719f..51e9e64a73ad2aec8d885dda2922ecd6e42f173d 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -3590,7 +3590,7 @@ def run(self, args):
                             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