Skip to content

Commit

Permalink
Merge pull request #5699 from minrk/badf
Browse files Browse the repository at this point in the history
don't use common names in require decorators
  • Loading branch information
takluyver committed Apr 22, 2014
2 parents fee8ace + fb252de commit 967090d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions IPython/parallel/controller/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def f(m,n,p)
raises an UnmetDependency error, then the task will not be run
and another engine will be tried.
"""
def __init__(self, f, *args, **kwargs):
self.f = f
def __init__(self, _wrapped_f, *args, **kwargs):
self.f = _wrapped_f
self.args = args
self.kwargs = kwargs

Expand All @@ -54,14 +54,14 @@ class dependent(object):
in traditional decorators, which are not picklable.
"""

def __init__(self, f, df, *dargs, **dkwargs):
self.f = f
def __init__(self, _wrapped_f, _wrapped_df, *dargs, **dkwargs):
self.f = _wrapped_f
name = getattr(f, '__name__', 'f')
if py3compat.PY3:
self.__name__ = name
else:
self.func_name = name
self.df = df
self.df = _wrapped_df
self.dargs = dargs
self.dkwargs = dkwargs

Expand Down

0 comments on commit 967090d

Please sign in to comment.