Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn concurrency.py into its own sub-package #244

Merged
merged 1 commit into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion httpx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .__version__ import __description__, __title__, __version__
from .api import delete, get, head, options, patch, post, put, request
from .client import AsyncClient, Client
from .concurrency import AsyncioBackend
from .concurrency.asyncio import AsyncioBackend
from .config import (
USER_AGENT,
CertTypes,
Expand Down
2 changes: 1 addition & 1 deletion httpx/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import hstspreload

from .auth import HTTPBasicAuth
from .concurrency import AsyncioBackend
from .concurrency.asyncio import AsyncioBackend
from .config import (
DEFAULT_MAX_REDIRECTS,
DEFAULT_POOL_LIMITS,
Expand Down
Empty file added httpx/concurrency/__init__.py
Empty file.
6 changes: 3 additions & 3 deletions httpx/concurrency.py → httpx/concurrency/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
import typing
from types import TracebackType

from .config import PoolLimits, TimeoutConfig
from .exceptions import ConnectTimeout, PoolTimeout, ReadTimeout, WriteTimeout
from .interfaces import (
from ..config import PoolLimits, TimeoutConfig
from ..exceptions import ConnectTimeout, PoolTimeout, ReadTimeout, WriteTimeout
from ..interfaces import (
BaseBackgroundManager,
BasePoolSemaphore,
BaseReader,
Expand Down
2 changes: 1 addition & 1 deletion httpx/dispatch/connection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import functools
import typing

from ..concurrency import AsyncioBackend
from ..concurrency.asyncio import AsyncioBackend
from ..config import (
DEFAULT_TIMEOUT_CONFIG,
CertTypes,
Expand Down
2 changes: 1 addition & 1 deletion httpx/dispatch/connection_pool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from ..concurrency import AsyncioBackend
from ..concurrency.asyncio import AsyncioBackend
from ..config import (
DEFAULT_POOL_LIMITS,
DEFAULT_TIMEOUT_CONFIG,
Expand Down
2 changes: 1 addition & 1 deletion httpx/dispatch/http11.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import h11

from ..concurrency import TimeoutFlag
from ..concurrency.asyncio import TimeoutFlag
from ..config import TimeoutConfig, TimeoutTypes
from ..interfaces import BaseReader, BaseWriter, ConcurrencyBackend
from ..models import AsyncRequest, AsyncResponse
Expand Down
2 changes: 1 addition & 1 deletion httpx/dispatch/http2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import h2.connection
import h2.events

from ..concurrency import TimeoutFlag
from ..concurrency.asyncio import TimeoutFlag
from ..config import TimeoutConfig, TimeoutTypes
from ..interfaces import BaseReader, BaseWriter, ConcurrencyBackend
from ..models import AsyncRequest, AsyncResponse
Expand Down