Skip to content

Commit

Permalink
py27 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Mar 18, 2019
1 parent 08b340d commit f8ec170
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vaex-core/vaex/functions.py
Expand Up @@ -111,7 +111,10 @@ def f(function=function):
def wrapper(*args, **kwargs):
return function(*args, **kwargs)
return wrapper
function = functools.wraps(function)(f())
try:
function = functools.wraps(function)(f())
except AttributeError:
function = f() # python 2 case
register_function(name=name)(function)


Expand Down

0 comments on commit f8ec170

Please sign in to comment.