aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorPiotr Usewicz <piotr@layer22.com>2019-09-23 22:49:52 +0200
committerKevinOConnor <kevin@koconnor.net>2019-09-23 16:49:52 -0400
commita92bdf1d54dcf8d9d731d3a7272ce6efe61f9e0b (patch)
treea1807fe0f188a1217e68df485c97482717b793d4 /klippy
parent6b2b8f31eebd840b0a724d6fb918e5f00009fc8c (diff)
downloadkutter-a92bdf1d54dcf8d9d731d3a7272ce6efe61f9e0b.tar.gz
kutter-a92bdf1d54dcf8d9d731d3a7272ce6efe61f9e0b.tar.xz
kutter-a92bdf1d54dcf8d9d731d3a7272ce6efe61f9e0b.zip
gcode_arcs: Use is operator for Null comparison (#1989)
Signed-off-by: Piotr Usewicz <piotr@layer22.com>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/gcode_arcs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/gcode_arcs.py b/klippy/extras/gcode_arcs.py
index 1ed71b98..3c5070f6 100644
--- a/klippy/extras/gcode_arcs.py
+++ b/klippy/extras/gcode_arcs.py
@@ -44,7 +44,7 @@ class ArcSupport:
asF = float(params.get("F", -1))
# --------- health checks of code -----------
- if (asX == None or asY == None):
+ if (asX is None or asY is None):
raise self.gcode.error("g2/g3: Coords missing")
elif asR == 0 and asI == 0 and asJ==0: