[mythtv-commits] Ticket #13343: GitHub: PR 175 Compare to `None` using identity `is` operator
MythTV
noreply at mythtv.org
Mon Apr 27 21:03:28 UTC 2020
#13343: GitHub: PR 175 Compare to `None` using identity `is` operator
-------------------------------+--------------------------------
Reporter: janisozaur | Owner: Raymond Wagner
Type: Patch - Bug Fix | Status: closed
Priority: minor | Milestone: 31.1
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
-------------------------------+--------------------------------
Changes (by Michał Janiszewski <janisozaur+signed@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"c0b8b6e036bdb531fe09be8005dcf1181d9333ec/mythtv"
c0b8b6e03/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="c0b8b6e036bdb531fe09be8005dcf1181d9333ec"
Compare to `None` using identity `is` operator
This is a trivial change that replaces `==` operator with `is` operator,
following PEP 8 guideline:
> Comparisons to singletons like None should always be done with is or is
not, never the equality operators.
https://legacy.python.org/dev/peps/pep-0008/#programming-recommendations
Closes #13343
(cherry picked from commit 2e7e9e82ae71e958a7844e768d3d2758cf6df3ad)
Signed-off-by: Bill Meek <billmeek at mythtv.org>
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13343#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list