Commit 191a49c0 authored by Nicholas Gar Hei Chan's avatar Nicholas Gar Hei Chan
Browse files

Replaced "is" with "=="

Probably doesn't work with Python 2.7? Also not a great idea in the first place.
parent 7ddf5ec8
......@@ -287,8 +287,8 @@ class Layer():
x_pts = []
y_pts = []
[x_pts.extend(line.x) for line in self.lines if ignore_infill is not True or line.line_type is "regular"]
[y_pts.extend(line.y) for line in self.lines if ignore_infill is not True or line.line_type is "regular"]
[x_pts.extend(line.x) for line in self.lines if ignore_infill != True or line.line_type == "regular"]
[y_pts.extend(line.y) for line in self.lines if ignore_infill != True or line.line_type == "regular"]
return dict([('x', x_pts), ('y', y_pts), ('num_pts', len(x_pts))])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment