From: Maurice (mausy5043) Hendrix Date: Wed, 27 Apr 2016 09:29:01 +0000 (+0200) Subject: pep8:E711 comparison to None should be `if cond is not None:` X-Git-Tag: archive/raspbian/1.68-2+rpi1~82^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=07cbb98dca094d0718c28ab9a0aa7ec51f0a2a3f;p=pigpio.git pep8:E711 comparison to None should be `if cond is not None:` --- diff --git a/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py b/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py index 519585e..c9ce87e 100755 --- a/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py +++ b/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py @@ -237,7 +237,7 @@ class sensor: self.pi.set_watchdog(self.gpio, 0) - if self.cb != None: + if self.cb is not None: self.cb.cancel() self.cb = None