[pypy-commit] pypy default: Bah, wrong method. It's startup() that is called at runtime.

arigo noreply at buildbot.pypy.org
Sun Mar 22 22:58:25 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r76505:9470a81396fa
Date: 2015-03-22 22:58 +0100
http://bitbucket.org/pypy/pypy/changeset/9470a81396fa/

Log:	Bah, wrong method. It's startup() that is called at runtime.

diff --git a/pypy/module/pyexpat/__init__.py b/pypy/module/pyexpat/__init__.py
--- a/pypy/module/pyexpat/__init__.py
+++ b/pypy/module/pyexpat/__init__.py
@@ -51,9 +51,8 @@
                  'XML_PARAM_ENTITY_PARSING_ALWAYS']:
         interpleveldefs[name] = 'space.wrap(interp_pyexpat.%s)' % (name,)
 
-    def setup_after_space_initialization(self):
+    def startup(self, space):
         from pypy.module.pyexpat import interp_pyexpat
-        space = self.space
         w_ver = interp_pyexpat.get_expat_version(space)
         space.setattr(self, space.wrap("EXPAT_VERSION"), w_ver)
         w_ver = interp_pyexpat.get_expat_version_info(space)


More information about the pypy-commit mailing list