Author: Anton Gulenko <anton.gule...@googlemail.com> Branch: storage Changeset: r782:672696846ecf Date: 2014-04-07 17:03 +0200 http://bitbucket.org/pypy/lang-smalltalk/changeset/672696846ecf/
Log: Fixed another assert that was always True. diff --git a/spyvm/interpreter_proxy.py b/spyvm/interpreter_proxy.py --- a/spyvm/interpreter_proxy.py +++ b/spyvm/interpreter_proxy.py @@ -45,8 +45,7 @@ MAJOR = major def decorator(func): len_unwrap_spec = len(unwrap_spec) - assert (len_unwrap_spec == len(inspect.getargspec(func)[0]) + 1, - "wrong number of arguments") + assert len_unwrap_spec == len(inspect.getargspec(func)[0]), "wrong number of arguments" unrolling_unwrap_spec = unrolling_iterable(enumerate(unwrap_spec)) def wrapped(*c_arguments): assert len_unwrap_spec == len(c_arguments) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit