1. iorodeo
  2. py2scad


Ed Blake  committed 4b7cd35

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

  • Participants
  • Parent commits 27d77fc
  • Branches default

Comments (0)

Files changed (1)

File py2scad/transforms.py

View file
     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):