summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-29 11:37:24 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-07-29 11:37:24 +0200
commit7cce2766a3cea9ebc2791538030b67f3b88d3895 (patch)
treecacf3a8a246a49e4af2f5ea622d3cf38f6184b0e
parent608d747b32686bfdeefae206810f17f72a2c82b5 (diff)
downloadtrollius-7cce2766a3cea9ebc2791538030b67f3b88d3895.tar.gz
Fix repr(_WaitHandleFuture)
-rw-r--r--asyncio/windows_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asyncio/windows_events.py b/asyncio/windows_events.py
index a5d9b21..03146ca 100644
--- a/asyncio/windows_events.py
+++ b/asyncio/windows_events.py
@@ -97,7 +97,7 @@ class _WaitHandleFuture(futures.Future):
info = super()._repr_info()
info.insert(1, 'handle=%#x' % self._handle)
if self._wait_handle:
- state = 'pending' if self._poll() else 'completed'
+ state = 'signaled' if self._poll() else 'waiting'
info.insert(1, 'wait_handle=<%s, %#x>'
% (state, self._wait_handle))
return info