Use relative imports in asyncio.tasks and asyncio.futures

This commit is contained in:
David Soria Parra
2016-02-19 19:51:11 -08:00
parent 3223a693d5
commit 70ddf02d21
2 changed files with 4 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
from typing import Any, Union, Callable, TypeVar, List, Generic, Iterable, Generator
from asyncio.events import AbstractEventLoop
from .events import AbstractEventLoop
# __all__ = ['CancelledError', 'TimeoutError',
# 'InvalidStateError',
# 'wrap_future',

View File

@@ -1,15 +1,12 @@
from typing import Any, Iterable, TypeVar, Set, Dict, List, TextIO, Union, Tuple, Generic, Callable, Generator
from asyncio.events import AbstractEventLoop
from asyncio.futures import Future
# __all__ = ['iscoroutinefunction', 'iscoroutine',
# 'as_completed', 'async',
# 'gather', 'shield',
# ]
__all__ = ['Task', 'sleep',
'FIRST_COMPLETED', 'FIRST_EXCEPTION', 'ALL_COMPLETED',
'wait', 'wait_for']
from .events import AbstractEventLoop
from .futures import Future
FIRST_EXCEPTION = 'FIRST_EXCEPTION'
FIRST_COMPLETED = 'FIRST_COMPLETED'
ALL_COMPLETED = 'ALL_COMPLETED'