diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:25:44 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-04-07 18:25:44 -0300 |
commit | bbfa66eb381f327b62994b60c321b61a72d25bfe (patch) | |
tree | 5a1b9f7b76e275f968bfeefdef465dfdc850795e | |
parent | 9ab4ec360c9028122648a881516ce5ed8ae63f77 (diff) | |
download | gerbonara-bbfa66eb381f327b62994b60c321b61a72d25bfe.tar.gz gerbonara-bbfa66eb381f327b62994b60c321b61a72d25bfe.tar.bz2 gerbonara-bbfa66eb381f327b62994b60c321b61a72d25bfe.zip |
Small change on __str__ for SF Statement
-rw-r--r-- | gerber/gerber_statements.py | 2 | ||||
-rw-r--r-- | gerber/tests/test_gerber_statements.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 4e5ed77..b56be0a 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -720,7 +720,7 @@ class SFParamStmt(ParamStmt): def __str__(self): scale_factor = '' if self.a is not None: - scale_factor += ('X: %g' % self.a) + scale_factor += ('X: %g ' % self.a) if self.b is not None: scale_factor += ('Y: %g' % self.b) return ('<Scale Factor: %s>' % scale_factor) diff --git a/gerber/tests/test_gerber_statements.py b/gerber/tests/test_gerber_statements.py index 9032268..831ff3a 100644 --- a/gerber/tests/test_gerber_statements.py +++ b/gerber/tests/test_gerber_statements.py @@ -283,7 +283,7 @@ def test_SFParamStmt_offset(): def test_SFParamStmt_string(): stmt = {'param': 'SF', 'a': '1.4', 'b': '0.9'} sf = SFParamStmt.from_dict(stmt) - assert_equal(str(sf), '<Scale Factor: X: 1.4Y: 0.9>') + assert_equal(str(sf), '<Scale Factor: X: 1.4 Y: 0.9>') def test_LPParamStmt_factory(): """ Test LPParamStmt factory |