Skip to content

Commit 8b241b5

Browse files
hauntsaninjasrittau
authored andcommitted
asyncio: fix SendfileNotAvailableError availability (#3631)
1 parent e3dfaa6 commit 8b241b5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

stdlib/3/asyncio/__init__.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ if sys.version_info >= (3, 8):
125125
TimeoutError as TimeoutError,
126126
)
127127
else:
128-
from asyncio.events import (
129-
SendfileNotAvailableError as SendfileNotAvailableError
130-
)
128+
if sys.version_info >= (3, 7):
129+
from asyncio.events import (
130+
SendfileNotAvailableError as SendfileNotAvailableError
131+
)
131132
from asyncio.futures import (
132133
CancelledError as CancelledError,
133134
TimeoutError as TimeoutError,

stdlib/3/asyncio/events.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,5 @@ def _get_running_loop() -> AbstractEventLoop: ...
335335

336336
if sys.version_info >= (3, 7):
337337
def get_running_loop() -> AbstractEventLoop: ...
338-
339-
if sys.version_info < (3, 8):
340-
class SendfileNotAvailableError(RuntimeError): ...
338+
if sys.version_info < (3, 8):
339+
class SendfileNotAvailableError(RuntimeError): ...

0 commit comments

Comments
 (0)