Opened 6 months ago

#13343 new Patch - Bug Fix

GitHub: PR 175 Compare to `None` using identity `is` operator

Reported by: janisozaur Owned by:
Priority: minor Milestone: needs_triage
Component: MythTV - General Version: Unspecified
Severity: medium 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 (0)

Note: See TracTickets for help on using tickets.