mirror of https://github.com/joan2937/pigpio
pep8:E711 comparison to None should be `if cond is not None:`
This commit is contained in:
parent
dc3ce64eb4
commit
07cbb98dca
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue