parent
36815d7ccc
commit
a75c92bb6a
@ -105,7 +105,10 @@ class JediCompleter( Completer ):
|
||||
|
||||
|
||||
def WaitAndClear( event, timeout=None ):
|
||||
flag_is_set = event.wait( timeout )
|
||||
if flag_is_set:
|
||||
event.clear()
|
||||
return flag_is_set
|
||||
# We can't just do flag_is_set = event.wait( timeout ) because that breaks on
|
||||
# Python 2.6
|
||||
event.wait( timeout )
|
||||
flag_is_set = event.is_set()
|
||||
if flag_is_set:
|
||||
event.clear()
|
||||
return flag_is_set
|
||||
|
Loading…
Reference in New Issue
Block a user