summaryrefslogtreecommitdiff
path: root/embroider.py
diff options
context:
space:
mode:
authorLex Neva <github@lexneva.name>2016-10-24 20:54:21 -0400
committerLex Neva <github@lexneva.name>2016-10-24 20:54:21 -0400
commitc40ae3cec301f7102b0cb0e99ca97b8a9685fb5d (patch)
treee6c1aec36157279b1b7bcd3a777881bde8159feb /embroider.py
parentafcd2d020a34c74238414924930295d6eb994cc0 (diff)
tidy up Patch
Diffstat (limited to 'embroider.py')
-rw-r--r--embroider.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/embroider.py b/embroider.py
index 35fefaa7..0f7650ad 100644
--- a/embroider.py
+++ b/embroider.py
@@ -189,13 +189,10 @@ def dupNodeAttrs(node):
return n2
class Patch:
- def __init__(self, color, sortorder, stitches=None):
+ def __init__(self, color=None, sortorder=None, stitches=None):
self.color = color
self.sortorder = sortorder
- if (stitches!=None):
- self.stitches = stitches
- else:
- self.stitches = []
+ self.stitches = stitches or []
def __add__(self, other):
if isinstance(other, Patch):