Opened 17 months ago

Last modified 6 months 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


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.

Change History (1)

comment:1 Changed 6 months 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.