summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/rs274x.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-21 22:05:23 +0100
committerjaseg <git@jaseg.de>2022-01-21 22:05:23 +0100
commitb8142cc08e983a790d7d49a754954e2585bd5470 (patch)
tree12b597d574c40a8fe1a31f5a95a36a83bbbcc4d8 /gerbonara/gerber/rs274x.py
parentfd8a259fb00af3e5b516ca3a94ecf54178920b92 (diff)
downloadgerbonara-b8142cc08e983a790d7d49a754954e2585bd5470.tar.gz
gerbonara-b8142cc08e983a790d7d49a754954e2585bd5470.tar.bz2
gerbonara-b8142cc08e983a790d7d49a754954e2585bd5470.zip
Fix test failures
Diffstat (limited to 'gerbonara/gerber/rs274x.py')
-rw-r--r--gerbonara/gerber/rs274x.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/rs274x.py b/gerbonara/gerber/rs274x.py
index a1cd207..80605a5 100644
--- a/gerbonara/gerber/rs274x.py
+++ b/gerbonara/gerber/rs274x.py
@@ -141,7 +141,7 @@ class GerberFile(CamFile):
# dedup apertures
new_apertures = {}
replace_apertures = {}
- mock_settings = self.import_settings
+ mock_settings = FileSettings()
for ap in self.apertures + other.apertures:
gbr = ap.to_gerber(mock_settings)
if gbr not in new_apertures:
@@ -825,7 +825,7 @@ class GerberParser:
self.layer_hints.append('bottom silk')
elif 'ETCH' in cmt:
_1, _2, name = cmt.partition('/')
- name = re.sub('\W+', '_', name)
+ name = re.sub(r'\W+', '_', name)
self.layer_hints.append(f'{name} copper')
else: