summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/apertures.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-22 20:51:22 +0100
committerjaseg <git@jaseg.de>2022-01-22 20:51:22 +0100
commitbf5a2968e227af90c9742a585939583f5d3da738 (patch)
treec2b8e1ffc6bcd8c273cc461228659429f7de39fd /gerbonara/gerber/apertures.py
parenteae43a579e128b29cd10f645837efba5bf0a3b40 (diff)
downloadgerbonara-bf5a2968e227af90c9742a585939583f5d3da738.tar.gz
gerbonara-bf5a2968e227af90c9742a585939583f5d3da738.tar.bz2
gerbonara-bf5a2968e227af90c9742a585939583f5d3da738.zip
Fix a bunch of bugs
Diffstat (limited to 'gerbonara/gerber/apertures.py')
-rw-r--r--gerbonara/gerber/apertures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/gerber/apertures.py b/gerbonara/gerber/apertures.py
index 872de9f..1e6c555 100644
--- a/gerbonara/gerber/apertures.py
+++ b/gerbonara/gerber/apertures.py
@@ -81,7 +81,7 @@ class Aperture:
def __eq__(self, other):
# We need to choose some unit here.
- return hasattr(other, to_gerber) and self.to_gerber(MM) == other.to_gerber(MM)
+ return hasattr(other, 'to_gerber') and self.to_gerber(MM) == other.to_gerber(MM)
def _rotate_hole_90(self):
if self.hole_rect_h is None: