summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-21 20:32:50 -0400
committerLex Neva <github.com@lexneva.name>2018-08-21 20:32:50 -0400
commit038875f876d79d0f1e971886fe42f5bee4f9f31e (patch)
tree296c60d3b490f988802f9bec884eed32dcbf9c0c /lib/elements/element.py
parentf26042f477f1520443b1d9dad0bb88ef3ad7ca47 (diff)
autopep8
Diffstat (limited to 'lib/elements/element.py')
-rw-r--r--lib/elements/element.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index ebca90a4..5ca70cf6 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -157,7 +157,7 @@ class EmbroideryElement(object):
doc_width, doc_height = get_doc_size(svg)
viewbox = svg.get('viewBox', '0 0 %s %s' % (doc_width, doc_height))
viewbox = viewbox.strip().replace(',', ' ').split()
- return doc_width / float(viewbox[2])
+ return doc_width / float(viewbox[2])
@property
@cache
@@ -230,7 +230,7 @@ class EmbroideryElement(object):
return commands[0]
elif len(commands) > 1:
raise ValueError(_("%(id)s has more than one command of type '%(command)s' linked to it") %
- dict(id=self.node.get(id), command=command))
+ dict(id=self.node.get(id), command=command))
else:
return None