summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/aperture_macros/parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/aperture_macros/parse.py')
-rw-r--r--gerbonara/gerber/aperture_macros/parse.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbonara/gerber/aperture_macros/parse.py b/gerbonara/gerber/aperture_macros/parse.py
index 3a6f6e1..0fa936f 100644
--- a/gerbonara/gerber/aperture_macros/parse.py
+++ b/gerbonara/gerber/aperture_macros/parse.py
@@ -91,7 +91,10 @@ class ApertureMacro:
self._name = name
def __str__(self):
- return f'<Aperture macro, variables {str(self.variables)}, primitives {self.primitives}>'
+ return f'<Aperture macro {self.name}, variables {str(self.variables)}, primitives {self.primitives}>'
+
+ def __repr__(self):
+ return str(self)
def __eq__(self, other):
return hasattr(other, 'to_gerber') and self.to_gerber() == other.to_gerber()