From: Denton Liu Date: Fri, 14 Feb 2020 05:15:05 GMT Subject: Re: yz/p4-py3, was Re: What's cooking in git.git (Feb 2020, #03; Wed, 12) Message-ID: <20200214051505.GA16130@generichostname> In-Reply-To: Hi Junio, On Thu, Feb 13, 2020 at 08:17:39PM -0800, Junio C Hamano wrote: > Now we are running some tests under py3, we seem to be failing the > tip of 'pu' > > https://travis-ci.org/git/git/jobs/650160479 > > that is getting a SyntaxError. > > if message.find(separatorLine) <> -1: This change comes from 'git-p4: restructure code in submit' in 'bk/p4-pre-edit-changelist' which introduced the use of the `<>` operator. In Python 2, this is valid but in Python 3, it was removed. We can simply replace the `<>` with `!=` which is the new way of writing "not equals".