Skip to content

Commit 2f35f0d

Browse files
committed
Remove unused conditional asyncio import
1 parent fc32b99 commit 2f35f0d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

pytest_twisted.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import inspect
22
import sys
33

4-
ASYNC_AWAIT = sys.version_info >= (3, 5)
5-
6-
if ASYNC_AWAIT:
7-
import asyncio
8-
else:
9-
asyncio = None
10-
11-
124
import decorator
135
import greenlet
146
import pytest
@@ -18,6 +10,9 @@
1810
from twisted.python import failure
1911

2012

13+
ASYNC_AWAIT = sys.version_info >= (3, 5)
14+
15+
2116
class WrongReactorAlreadyInstalledError(Exception):
2217
pass
2318

0 commit comments

Comments
 (0)