- minor changes to increase compatibility with Python 3.8
This commit is contained in:
@@ -718,7 +718,7 @@ class Gerber(Geometry):
|
||||
# so it can be processed by FlatCAM.
|
||||
# But first test to see if the aperture type is "aperture macro". In that case
|
||||
# we should not test for "size" key as it does not exist in this case.
|
||||
if self.apertures[current_aperture]["type"] is not "AM":
|
||||
if self.apertures[current_aperture]["type"] != "AM":
|
||||
if self.apertures[current_aperture]["size"] == 0:
|
||||
self.apertures[current_aperture]["size"] = 1e-12
|
||||
# log.debug(self.apertures[current_aperture])
|
||||
|
||||
Reference in New Issue
Block a user