Skip to content

Commit 9105915

Browse files
committed
convert "!= None "to "is not None"
1 parent a71f813 commit 9105915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_vl53l0x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def read_range(self, max_ready_wait_us = None):
573573
and (time.monotonic() - start) >= self.io_timeout_s
574574
):
575575
raise RuntimeError("Timeout waiting for VL53L0X!")
576-
if max_ready_wait_us != None and (time.monotonic() - start)*1_000_000 >= max_ready_wait_us:
576+
if max_ready_wait_us is not None and (time.monotonic() - start)*1_000_000 >= max_ready_wait_us:
577577
return -1
578578
# assumptions: Linearity Corrective Gain is 1000 (default)
579579
# fractional ranging is not enabled

0 commit comments

Comments
 (0)