Skip to content

Commit

Permalink
fix bug p5py#23: Tuple unpacking incompatible with Python 3.4 and less
Browse files Browse the repository at this point in the history
  • Loading branch information
hx2A committed Mar 22, 2018
1 parent e78c4a8 commit ac19dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p5/pmath/curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def typecast_arguments_as_points(func):
"""Typecast all but the last argument of the function as Points."""
@wraps(func)
def decorated(*args, **kwargs):
parameter = args[-1]
new_args = [Point(*arg) for arg in args[:-1]]
ret_value = func(*new_args, parameter, **kwargs)
new_args.append(args[-1])
ret_value = func(*new_args, **kwargs)
return ret_value
return decorated

Expand Down

0 comments on commit ac19dae

Please sign in to comment.