Browse Source

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>
maint
Luke Diamand 7 years ago committed by Junio C Hamano
parent
commit
fc35c9d5dc
  1. 2
      git-p4.py

2
git-p4.py

@ -3590,7 +3590,7 @@ class P4Sync(Command, P4UserMap): @@ -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


Loading…
Cancel
Save