[pypy-commit] pypy tealet: fixes.

arigo noreply at buildbot.pypy.org
Wed Jul 6 20:28:44 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: tealet
Changeset: r45382:0cbc95f97c9d
Date: 2011-06-12 10:43 +0000
http://bitbucket.org/pypy/pypy/changeset/0cbc95f97c9d/

Log:	fixes.

diff --git a/pypy/module/tealet/interp_tealet.py b/pypy/module/tealet/interp_tealet.py
--- a/pypy/module/tealet/interp_tealet.py
+++ b/pypy/module/tealet/interp_tealet.py
@@ -32,7 +32,7 @@
     r.space = space
     return space.wrap(r)
 
-def W_Tealet_switch(w_self):
+def W_Tealet_switch(space, w_self):
     self = space.interp_w(W_Tealet, w_self)
     try:
         self.switch()
@@ -55,8 +55,7 @@
     r.space = space
     return space.wrap(r)
 
-def W_MainTealet_start(w_self, w_tealet):
-    space = self.space
+def W_MainTealet_start(space, w_self, w_tealet):
     self = space.interp_w(W_MainTealet, w_self)
     tealet = space.interp_w(W_Tealet, w_tealet)
     try:
@@ -65,7 +64,7 @@
         raise wrap_error(space, e)
 
 W_MainTealet.typedef = TypeDef(
-        'MainTealet',
+        'MainTealet', W_Tealet.typedef,
         __module__ = 'tealet',
         __new__ = interp2app(W_MainTealet___new__),
         start = interp2app(W_MainTealet_start),


More information about the pypy-commit mailing list