pep8:E711 comparison to None should be `if cond is not None:`

This commit is contained in:
Maurice (mausy5043) Hendrix 2016-04-27 11:29:01 +02:00
parent dc3ce64eb4
commit 07cbb98dca
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class sensor:
self.pi.set_watchdog(self.gpio, 0) self.pi.set_watchdog(self.gpio, 0)
if self.cb != None: if self.cb is not None:
self.cb.cancel() self.cb.cancel()
self.cb = None self.cb = None