From a92bdf1d54dcf8d9d731d3a7272ce6efe61f9e0b Mon Sep 17 00:00:00 2001 From: Piotr Usewicz Date: Mon, 23 Sep 2019 22:49:52 +0200 Subject: [PATCH] gcode_arcs: Use is operator for Null comparison (#1989) Signed-off-by: Piotr Usewicz --- klippy/extras/gcode_arcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: