Skip to content

Commit

Permalink
Turn concurrency.py into its own sub-package (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca authored and sethmlarson committed Aug 20, 2019
1 parent a0aff8d commit b2397ff
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
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

0 comments on commit b2397ff

Please sign in to comment.