pep8:E711 comparison to None should be `if cond is not None:`
authorMaurice (mausy5043) Hendrix <Mausy5043@users.noreply.github.com>
Wed, 27 Apr 2016 09:29:01 +0000 (11:29 +0200)
committerMaurice (mausy5043) Hendrix <Mausy5043@users.noreply.github.com>
Wed, 27 Apr 2016 09:29:01 +0000 (11:29 +0200)
EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py

index 519585e28d4ae5473ef4bd6174d92085a7498ed0..c9ce87e3732bb02f7785b13141030014f5d621dd 100755 (executable)
@@ -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