Skip to content

Commit

Permalink
MNT : do not shadow dict
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Jan 4, 2015
1 parent e0c0e66 commit 3d6ac08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vistrails/core/modules/vistrails_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1798,10 +1798,11 @@ def __call__(self):
"type %s" % (i, self.port, desc.name))
return result

def new_module(base_module, name, dict={}, docstring=None):

def new_module(base_module, name, class_dict={}, docstring=None):
"""new_module(base_module or [base_module list],
name,
dict={},
class_dict={},
docstring=None
Creates a new VisTrails module dynamically. Exactly one of the
Expand All @@ -1816,7 +1817,7 @@ def new_module(base_module, name, dict={}, docstring=None):
superclasses = tuple(base_module)
else:
raise TypeError
d = copy.copy(dict)
d = copy.copy(class_dict)
if docstring:
d['__doc__'] = docstring
return type(name, superclasses, d)
Expand Down

0 comments on commit 3d6ac08

Please sign in to comment.