From: Luke Diamand Date: Tue, 19 Jun 2018 08:04:06 +0000 (+0100) Subject: git-p4: python3: replace <> with != X-Git-Tag: v2.19.0-rc0~163^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fc35c9d5dc8fefbc29e9713e6b47eb4c19579d56?hp=f0ac6e39433c1d7e9339207aa4d01e9bf7a05b8a 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 Signed-off-by: Junio C Hamano --- diff --git a/git-p4.py b/git-p4.py index 0354d4df5c..51e9e64a73 100755 --- 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