Permalink
Browse files

Fix tuple args.

They have broken for awhile.  Tested on opy/testdata/tuple_args.py.

I will remove this feature.
  • Loading branch information...
Andy Chu
Andy Chu committed Mar 19, 2018
1 parent d7dc297 commit 56d6e62def26b3cf7f9b882b3adad95691d97116
Showing with 1 addition and 1 deletion.
  1. +1 −1 opy/compiler2/pycodegen.py
@@ -1309,7 +1309,7 @@ def _GenerateArgList(arglist):
args.append(elt)
elif isinstance(elt, tuple):
args.append(pyassem.TupleArg(i * 2, elt))
extra.extend(misc.flatten(elt))
extra.extend(pyassem.flatten(elt))
count += 1
else:
raise ValueError("unexpect argument type: %s" % elt)

0 comments on commit 56d6e62

Please sign in to comment.