merge upstream changes

This commit is contained in:
Hamilton Kibbe 2015-01-26 22:24:45 -05:00
parent c054136a65
commit 208149d676
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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)\*")

View file

@ -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>')