[pypy-svn] r46485 - pypy/branch/cleanup-weakref/pypy/module/_weakref
arigo at codespeak.net
arigo at codespeak.net
Tue Sep 11 21:56:11 CEST 2007
Author: arigo
Date: Tue Sep 11 21:56:11 2007
New Revision: 46485
Modified:
pypy/branch/cleanup-weakref/pypy/module/_weakref/__init__.py
Log:
Fix the logic used to skip the _weakref app-level module
from the list of enabled modules.
Modified: pypy/branch/cleanup-weakref/pypy/module/_weakref/__init__.py
==============================================================================
--- pypy/branch/cleanup-weakref/pypy/module/_weakref/__init__.py (original)
+++ pypy/branch/cleanup-weakref/pypy/module/_weakref/__init__.py Tue Sep 11 21:56:11 2007
@@ -14,7 +14,6 @@
}
def __init__(self, space, *args):
- if space.config.translation.sandbox:
- raise SkipModule(
- "XXX weakrefs are disabled in a sandbox translation ATM")
+ if not space.config.translation.rweakref:
+ raise SkipModule("no RPython-level weakrefs")
MixedModule.__init__(self, space, *args)
More information about the Pypy-commit
mailing list