Skip to content

Commit b34af8d

Browse files
committed
fix is not to !=
1 parent 4e95b95 commit b34af8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcodeplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def flip(y):
453453
state.curXY = p
454454

455455
for pen in sorted(data):
456-
if pen is not 1:
456+
if pen != 1:
457457
state.curZ = None
458458
state.curXY = None
459459

svgpath/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def getFloat(attribute,default=0.):
592592
if tag.strip().lower().endswith("}href"):
593593
link = tree.attrib[tag]
594594
break
595-
if link is None or link[0] is not '#':
595+
if link is None or link[0] != '#':
596596
raise KeyError
597597
source = savedElements[link[1:]]
598598
x = 0

0 commit comments

Comments
 (0)