diff options
author | jaseg <git@jaseg.de> | 2022-01-21 22:05:23 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-21 22:05:23 +0100 |
commit | b8142cc08e983a790d7d49a754954e2585bd5470 (patch) | |
tree | 12b597d574c40a8fe1a31f5a95a36a83bbbcc4d8 /gerbonara/gerber/excellon.py | |
parent | fd8a259fb00af3e5b516ca3a94ecf54178920b92 (diff) | |
download | gerbonara-b8142cc08e983a790d7d49a754954e2585bd5470.tar.gz gerbonara-b8142cc08e983a790d7d49a754954e2585bd5470.tar.bz2 gerbonara-b8142cc08e983a790d7d49a754954e2585bd5470.zip |
Fix test failures
Diffstat (limited to 'gerbonara/gerber/excellon.py')
-rwxr-xr-x | gerbonara/gerber/excellon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/excellon.py b/gerbonara/gerber/excellon.py index dc2ea86..6cc5e69 100755 --- a/gerbonara/gerber/excellon.py +++ b/gerbonara/gerber/excellon.py @@ -65,7 +65,7 @@ def parse_allegro_ncparam(data, settings=None): # want to parse, but sometimes due to user error it doesn't end up in the gerber package. In this case, we want to # still be able to extract the same information from the human-readable ncdrill.log. - if settings is None + if settings is None: self.settings = FileSettings(number_format=(None, None)) lz_supp, tz_supp = False, False @@ -172,7 +172,7 @@ class ExcellonFile(CamFile): return kls.from_string(filename.read_text(), settings=settings, filename=filename, plated=plated) @classmethod - def from_string(kls, data, settings=None, filename=filename, plated=None): + def from_string(kls, data, settings=None, filename=None, plated=None): parser = ExcellonParser(settings) parser._do_parse(data) return kls(objects=parser.objects, comments=parser.comments, import_settings=settings, |