Re: yz/p4-py3, was Re: What's cooking in git.git (Feb 2020, #03; Wed, 12)
- From
Denton Liu <liu.denton@gmail.com>
- Date
- Feb 14, 2020, 05:15 UTC
- Message-ID
- <20200214051505.GA16130@generichostname>
- In-Reply-To
- <xmqqtv3tpzto.fsf@gitster-ct.c.googlers.com>
Hi Junio,
On Thu, Feb 13, 2020 at 08:17:39PM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> 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".