]> git.ipfire.org Git - thirdparty/git.git/commit
git-p4: compare to singletons with "is" and "is not"
authorJoel Holdsworth <jholdsworth@nvidia.com>
Fri, 1 Apr 2022 14:25:00 +0000 (15:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2022 20:15:44 +0000 (13:15 -0700)
commitda0134f6534f407f8377ea97eb040ee6e49412e1
treefdfbe6fe0435261a8b064f49f05de31752674d58
parent7a3e83d0bd1d8fe004cd2f3dd4bc03bc8ca6fe9e
git-p4: compare to singletons with "is" and "is not"

PEP8 recommends that comparisons with singletons such as None should be
done with "is" and "is not", and never equality operators.

This guideline is described here:
https://www.python.org/dev/peps/pep-0008/#programming-recommendations

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py