]> granicus.if.org Git - python/commit
Update asyncio from the Tulip project
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 25 Jan 2014 14:32:06 +0000 (15:32 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 25 Jan 2014 14:32:06 +0000 (15:32 +0100)
commit8dffc456d74a3a4395ac7a8f3957ff74f7f66753
treee6a0b0a8ceaea275bfba7276698842f3a0ab5d79
parent75a5ec88ff41ad7d3909e54ce517754298b31404
Update asyncio from the Tulip project

Major changes:

- StreamReader.readexactly() now raises an IncompleteReadError if the
  end of stream is reached before we received enough bytes, instead of
  returning less bytes than requested.

- Unit tests use the main asyncio module instead of submodules like events

- _UnixWritePipeTransport now also supports character devices, as
  _UnixReadPipeTransport. Patch written by Jonathan Slenders.

- Export more symbols: BaseEventLoop, BaseProactorEventLoop,
  BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full
17 files changed:
Lib/asyncio/__init__.py
Lib/asyncio/proactor_events.py
Lib/asyncio/selector_events.py
Lib/asyncio/streams.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_locks.py
Lib/test/test_asyncio/test_proactor_events.py
Lib/test/test_asyncio/test_queues.py
Lib/test/test_asyncio/test_selector_events.py
Lib/test/test_asyncio/test_streams.py
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_asyncio/test_transports.py
Lib/test/test_asyncio/test_unix_events.py
Lib/test/test_asyncio/test_windows_events.py