Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r51572:a718c93124eb
Date: 2012-01-21 12:47 +0100
http://bitbucket.org/pypy/pypy/changeset/a718c93124eb/
Log: Fix translation
diff --git a/pypy/interpreter/argument.py b/pypy/interpreter/argument.py
--- a/pypy/interpreter/argument.py
+++ b/pypy/interpreter/argument.py
@@ -9,7 +9,7 @@
class Signature(object):
_immutable_ = True
- _immutable_fields_ = ["argnames[*]"]
+ _immutable_fields_ = ["argnames[*]", "kwonlyargnames[*]"]
__slots__ = ("argnames", "kwonlyargnames", "varargname", "kwargname")
def __init__(self, argnames, varargname=None, kwargname=None,
kwonlyargnames=None):
@@ -51,7 +51,7 @@
argnames = self.argnames
if self.varargname is not None:
argnames = argnames + [self.varargname]
- argnames += self.kwonlyargnames
+ argnames = argnames + self.kwonlyargnames
if self.kwargname is not None:
argnames = argnames + [self.kwargname]
return argnames
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit