From 07cbb98dca094d0718c28ab9a0aa7ec51f0a2a3f Mon Sep 17 00:00:00 2001 From: "Maurice (mausy5043) Hendrix" Date: Wed, 27 Apr 2016 11:29:01 +0200 Subject: [PATCH] pep8:E711 comparison to None should be `if cond is not None:` --- EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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