diff options
author | shadchin <[email protected]> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop')
-rw-r--r-- | contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/asyncio_posix.py | 4 | ||||
-rw-r--r-- | contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/win32.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/asyncio_posix.py b/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/asyncio_posix.py index 3c54992beb2..426ed96f67d 100644 --- a/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/asyncio_posix.py +++ b/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/asyncio_posix.py @@ -22,7 +22,7 @@ class PosixAsyncioEventLoop(EventLoop): self.loop = loop or asyncio.get_event_loop() self.closed = False - self._stopped_f = asyncio.Future(loop=self.loop) + self._stopped_f = asyncio.Future(loop=self.loop) @asyncio.coroutine def run_as_coroutine(self, stdin, callbacks): @@ -41,7 +41,7 @@ class PosixAsyncioEventLoop(EventLoop): try: # Create a new Future every time. - self._stopped_f = asyncio.Future(loop=self.loop) + self._stopped_f = asyncio.Future(loop=self.loop) # Handle input timouts def timeout_handler(): diff --git a/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/win32.py b/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/win32.py index e13c4c22ee2..18e356f0882 100644 --- a/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/win32.py +++ b/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/win32.py @@ -36,7 +36,7 @@ class Win32EventLoop(EventLoop): def __init__(self, inputhook=None, recognize_paste=True): assert inputhook is None or callable(inputhook) - self._event = HANDLE(_create_event()) + self._event = HANDLE(_create_event()) self._console_input_reader = ConsoleInputReader(recognize_paste=recognize_paste) self._calls_from_executor = [] @@ -74,14 +74,14 @@ class Win32EventLoop(EventLoop): # Wait for the next event. handle = self._ready_for_reading(remaining_timeout) - if handle == self._console_input_reader.handle.value: + if handle == self._console_input_reader.handle.value: # When stdin is ready, read input and reset timeout timer. keys = self._console_input_reader.read() for k in keys: callbacks.feed_key(k) current_timeout = INPUT_TIMEOUT_MS - elif handle == self._event.value: + elif handle == self._event.value: # When the Windows Event has been trigger, process the messages in the queue. windll.kernel32.ResetEvent(self._event) self._process_queued_calls_from_executor() |