]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Drop extraneous `proxy` argument on `URLLib3Transport`. (#1090)
authorTom Christie <tom@tomchristie.com>
Sun, 26 Jul 2020 19:45:17 +0000 (20:45 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Jul 2020 19:45:17 +0000 (20:45 +0100)
* Update urllib3.py

Drop `proxy` argument that has been accidentally left over on `URLLib3Transport`.
It's not used anywhere, and it's not relevant since we seperate `URLLib3Transport` and `URLLib3ProxyTransport` classes.

* Update urllib3.py

httpx/_transports/urllib3.py

index 0bbb2b3eb5a69e81f7ed71000c66078c6cfcf093..fab0a122b7feb0cf5ca87d78883aae3685f92520 100644 (file)
@@ -3,7 +3,7 @@ from typing import Dict, Iterator, List, Optional, Tuple
 
 import httpcore
 
-from .._config import Proxy, SSLConfig
+from .._config import SSLConfig
 from .._content_streams import ByteStream, IteratorStream
 from .._exceptions import NetworkError, map_exceptions
 from .._types import CertTypes, VerifyTypes
@@ -19,7 +19,6 @@ class URLLib3Transport(httpcore.SyncHTTPTransport):
     def __init__(
         self,
         *,
-        proxy: Proxy = None,
         verify: VerifyTypes = True,
         cert: CertTypes = None,
         trust_env: bool = None,