Commits

Ed Blake committed 4b7cd35

Fixed bug with optional mod parameter in Assembly.__call__ method.

Comments (0)

Files changed (1)

py2scad/transforms.py

 
     def __call__(self, mod='', *args):
         """Returns a string calling this module with provided arguments."""
-        if not mod in '*!#%'.split(): # mod can eat he first arg
+        if mod and not mod in list('*!#%'): # mod can eat he first arg
             args = (mod,) + args
             mod = ''
         if len(args) > len(self.args):