Issue #21076: sigpending() is not available on Windows

This commit is contained in:
Victor Stinner 2014-04-04 16:57:24 +02:00
parent be9acefc6b
commit a2b5bf01e7
1 changed files with 5 additions and 4 deletions

View File

@ -68,10 +68,11 @@ if 'pthread_sigmask' in _globals:
pthread_sigmask.__doc__ = _signal.pthread_sigmask.__doc__
@_wraps(_signal.sigpending)
def sigpending():
sigs = _signal.sigpending()
return set(_int_to_enum(x, Signals) for x in sigs)
if 'sigpending' in _globals:
@_wraps(_signal.sigpending)
def sigpending():
sigs = _signal.sigpending()
return set(_int_to_enum(x, Signals) for x in sigs)
if 'sigwait' in _globals: