r47259 - fixes
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Fri, 15 Apr 2016 23:35:11 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Fri Apr 15 23:35:04 2016
New Revision: 47259
Modified:
branches/moar-windows-8025-7/twisted/internet/win32eventreactor.py
Log:
fixes
Modified: branches/moar-windows-8025-7/twisted/internet/win32eventreactor.py
==============================================================================
--- branches/moar-windows-8025-7/twisted/internet/win32eventreactor.py (original)
+++ branches/moar-windows-8025-7/twisted/internet/win32eventreactor.py Fri Apr 15 23:35:04 2016
@@ -51,7 +51,7 @@
from twisted.internet import posixbase
from twisted.python import log, threadable, failure
-from twisted.python.compat import keys
+from twisted.python.compat import _keys
from twisted.internet.interfaces import IReactorFDSet
from twisted.internet.interfaces import IReactorWin32Events
from twisted.internet.threads import blockingCallFromThread
@@ -189,14 +189,14 @@
"""
Return a L{list} of all readers.
"""
- return keys(self._reads)
+ return _keys(self._reads)
def getWriters(self):
"""
Return a L{list} of all writers.
"""
- return keys(self._writes)
+ return _keys(self._writes)
def doWaitForMultipleEvents(self, timeout):
@@ -212,7 +212,7 @@
# If any descriptors are trying to close, try to get them out of the way
# first.
- for reader in keys(self._closedAndReading):
+ for reader in _keys(self._closedAndReading):
ranUserCode = True
self._runAction('doRead', reader)
@@ -232,7 +232,7 @@
time.sleep(timeout)
return
- handles = keys(self._events) or [self.dummyEvent]
+ handles = _keys(self._events) or [self.dummyEvent]
timeout = int(timeout * 1000)
val = MsgWaitForMultipleObjects(handles, 0, timeout, QS_ALLINPUT)
if val == WAIT_TIMEOUT: