Opened 6 years ago
Closed 5 years ago
Last modified 5 years ago
#13343 closed Patch - Bug Fix (fixed)
GitHub: PR 175 Compare to `None` using identity `is` operator
Reported by: | janisozaur | Owned by: | Bill Meek |
---|---|---|---|
Priority: | trivial | Milestone: | 31.1 |
Component: | Bindings - Python | Version: | Master Head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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
Change History (4)
comment:1 Changed 5 years ago by
Component: | MythTV - General → Bindings - Python |
---|---|
Milestone: | needs_triage → 31.0 |
Owner: | set to Raymond Wagner |
Version: | Unspecified → Master Head |
comment:2 Changed 5 years ago by
Milestone: | 31.0 → 31.1 |
---|
comment:4 Changed 5 years ago by
Owner: | changed from Raymond Wagner to Bill Meek |
---|---|
Priority: | minor → trivial |
Severity: | medium → low |
Note: See
TracTickets for help on using
tickets.
Moving open tickets v31.0 -> v31.1