[mythtv-commits] Ticket #13343: GitHub: PR 175 Compare to `None` using identity `is` operator
MythTV
noreply at mythtv.org
Tue Oct 30 21:01:06 UTC 2018
#13343: GitHub: PR 175 Compare to `None` using identity `is` operator
----------------------------------+--------------------------
Reporter: janisozaur | Owner: (none)
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
----------------------------------+--------------------------
https://github.com/MythTV/mythtv/pull/175
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
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13343>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list