merge upstream changes
This commit is contained in:
parent
c054136a65
commit
208149d676
3 changed files with 4 additions and 2 deletions
|
|
@ -281,7 +281,7 @@ class ADParamStmt(ParamStmt):
|
|||
elif self.shape == 'R':
|
||||
shape = 'rectangle'
|
||||
elif self.shape == 'O':
|
||||
shape = 'oblong'
|
||||
shape = 'obround'
|
||||
else:
|
||||
shape = self.shape
|
||||
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ class GerberFile(CamFile):
|
|||
f.write("\n")
|
||||
|
||||
|
||||
|
||||
class GerberParser(object):
|
||||
""" GerberParser
|
||||
"""
|
||||
|
|
@ -156,6 +157,7 @@ class GerberParser(object):
|
|||
|
||||
APERTURE_STMT = re.compile(r"(?P<deprecated>(G54)|G55)?D(?P<d>\d+)\*")
|
||||
|
||||
|
||||
COMMENT_STMT = re.compile(r"G04(?P<comment>[^*]*)(\*)?")
|
||||
|
||||
EOF_STMT = re.compile(r"(?P<eof>M02)\*")
|
||||
|
|
|
|||
|
|
@ -411,4 +411,4 @@ def test_ADParamStmt_string():
|
|||
|
||||
stmt = {'param': 'AD', 'd': 2, 'shape': 'O'}
|
||||
ad = ADParamStmt.from_dict(stmt)
|
||||
assert_equal(str(ad), '<Aperture Definition: 2: obround')
|
||||
assert_equal(str(ad), '<Aperture Definition: 2: obround>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue