Opened 13 months ago

Last modified 5 weeks ago

#13343 new Patch - Bug Fix

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

Reported by: janisozaur Owned by: Raymond Wagner
Priority: minor Milestone: 31.0
Component: Bindings - Python Version: Master Head
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 (1)

comment:1 Changed 5 weeks ago by Stuart Auchterlonie

Component: MythTV - GeneralBindings - Python
Milestone: needs_triage31.0
Owner: set to Raymond Wagner
Version: UnspecifiedMaster Head
Note: See TracTickets for help on using tickets.