#1674032: return value of flag from Event.wait(). OKed by Guido.

This commit is contained in:
Georg Brandl 2009-03-31 20:41:08 +00:00
parent 1d7d5325be
commit ef660e8e50
3 changed files with 12 additions and 4 deletions

View file

@ -391,6 +391,7 @@ class _Event(_Verbose):
try:
if not self.__flag:
self.__cond.wait(timeout)
return self.__flag
finally:
self.__cond.release()