Commits

Armin Rigo committed 0f1e91d

Translation fix

Comments (0)

Files changed (1)

pypy/module/signal/interp_signal.py

 includes = ['stdlib.h', 'src/signals.h']
 if sys.platform != 'win32':
     includes.append('sys/time.h')
+WIN32 = sys.platform == 'win32'
 
 cdir = py.path.local(autopath.pypydir).join('translator', 'c')
 
     None -- if an unknown handler is in effect (XXX UNIMPLEMENTED)
     anything else -- the callable Python object used as a handler
     """
-    if sys.platform == 'win32':
+    if WIN32:
         check_signum_exists(space, signum)
     else:
         check_signum_in_range(space, signum)