Author: Armin Rigo <[email protected]>
Branch: py3.5-newtext
Changeset: r89204:61cc80850258
Date: 2016-12-20 15:18 +0100
http://bitbucket.org/pypy/pypy/changeset/61cc80850258/

Log:    remove a (never-called) space.wrap

diff --git a/pypy/interpreter/astcompiler/ast.py 
b/pypy/interpreter/astcompiler/ast.py
--- a/pypy/interpreter/astcompiler/ast.py
+++ b/pypy/interpreter/astcompiler/ast.py
@@ -47,10 +47,10 @@
     "Hack around the fact we can't store tuples on a TypeDef."
 
     def __init__(self, fields):
-        self.fields = fields
+        assert fields == []
 
     def __spacebind__(self, space):
-        return space.newtuple([space.wrap(field) for field in self.fields])
+        return space.newtuple([])
 
 
 class W_AST(W_Root):
diff --git a/pypy/interpreter/astcompiler/tools/asdl_py.py 
b/pypy/interpreter/astcompiler/tools/asdl_py.py
--- a/pypy/interpreter/astcompiler/tools/asdl_py.py
+++ b/pypy/interpreter/astcompiler/tools/asdl_py.py
@@ -469,10 +469,10 @@
     "Hack around the fact we can't store tuples on a TypeDef."
 
     def __init__(self, fields):
-        self.fields = fields
+        assert fields == []
 
     def __spacebind__(self, space):
-        return space.newtuple([space.wrap(field) for field in self.fields])
+        return space.newtuple([])
 
 
 class W_AST(W_Root):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to