diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:26:33 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:26:33 -0300 |
commit | d1c74317c8df83da5d9f01b74c28be2b467fa300 (patch) | |
tree | a3a7a8b18693649f6c46231e4d5cb5f45d738d28 /gerber/gerber_statements.py | |
parent | bbfa66eb381f327b62994b60c321b61a72d25bfe (diff) | |
download | gerbonara-d1c74317c8df83da5d9f01b74c28be2b467fa300.tar.gz gerbonara-d1c74317c8df83da5d9f01b74c28be2b467fa300.tar.bz2 gerbonara-d1c74317c8df83da5d9f01b74c28be2b467fa300.zip |
Add some deprecated but still found statements
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index b56be0a..27066cd 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -760,6 +760,37 @@ class LNParamStmt(ParamStmt): return '<Level Name: %s>' % self.name +class DeprecatedStmt(Statement): + """ Unimportant deprecated statement, will be parsed but not emitted. + """ + @classmethod + def from_gerber(cls, line): + return cls(line) + + def __init__(self, line): + """ Initialize DeprecatedStmt class + + Parameters + ---------- + line : string + Deprecated statement text + + Returns + ------- + DeprecatedStmt + Initialized DeprecatedStmt class. + + """ + Statement.__init__(self, "DEPRECATED") + self.line = line + + def to_gerber(self, settings=None): + return '' + + def __str__(self): + return '<Deprecated Statement: \'%s\'>' % self.line + + class CoordStmt(Statement): """ Coordinate Data Block """ |