Skip to content

Commit 47b9126

Browse files
committed
Remove unused import
1 parent ce0d1b2 commit 47b9126

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

httpcore/_async/connection_pool.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
from .connection import AsyncHTTPConnection
1414
from .interfaces import AsyncConnectionInterface, AsyncRequestInterface
1515

16-
try:
17-
from .http2 import AsyncHTTP2Connection
18-
except ImportError: # pragma: nocover
19-
# ImportError happens when the user installed httpcore without the optional http2 dependency
20-
AsyncHTTP2Connection = None # type: ignore[assignment, misc]
21-
2216

2317
class AsyncPoolRequest:
2418
def __init__(self, request: Request) -> None:

httpcore/_sync/connection_pool.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
from .connection import HTTPConnection
1414
from .interfaces import ConnectionInterface, RequestInterface
1515

16-
try:
17-
from .http2 import HTTP2Connection
18-
except ImportError: # pragma: nocover
19-
# ImportError happens when the user installed httpcore without the optional http2 dependency
20-
HTTP2Connection = None # type: ignore[assignment, misc]
21-
2216

2317
class PoolRequest:
2418
def __init__(self, request: Request) -> None:

0 commit comments

Comments
 (0)