[pypy-commit] pypy default: Export 'setitimer' even if running Python 2.5, which does not have

arigo noreply at buildbot.pypy.org
Thu Nov 10 11:58:25 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r49124:5c495d43377a
Date: 2011-11-10 11:58 +0100
http://bitbucket.org/pypy/pypy/changeset/5c495d43377a/

Log:	Export 'setitimer' even if running Python 2.5, which does not have
	itself 'setitimer'.

diff --git a/pypy/module/signal/__init__.py b/pypy/module/signal/__init__.py
--- a/pypy/module/signal/__init__.py
+++ b/pypy/module/signal/__init__.py
@@ -20,7 +20,7 @@
         interpleveldefs['pause'] = 'interp_signal.pause'
         interpleveldefs['siginterrupt'] = 'interp_signal.siginterrupt'
 
-    if hasattr(cpy_signal, 'setitimer'):
+    if os.name == 'posix':
         interpleveldefs['setitimer'] = 'interp_signal.setitimer'
         interpleveldefs['getitimer'] = 'interp_signal.getitimer'
         for name in ['ITIMER_REAL', 'ITIMER_VIRTUAL', 'ITIMER_PROF']:


More information about the pypy-commit mailing list