Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-p4: python3: replace <> with !=
author
Luke Diamand
<luke@diamand.org>
Tue, 19 Jun 2018 08:04:06 +0000
(09:04 +0100)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
f0ac6e3
)
diff --git
a/git-p4.py
b/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