redorder imports
authorKenneth Reitz <me@kennethreitz.com>
Mon, 17 Dec 2012 08:32:24 +0000 (03:32 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Mon, 17 Dec 2012 08:32:24 +0000 (03:32 -0500)
requests/adapters.py

index 55aafe7..d6e3da6 100644 (file)
@@ -7,22 +7,20 @@ requests.adapters
 This module contains the transport adapters that Requests uses to define
 and maintain connections.
 """
+
 import os
+import socket
+
 from .models import Response
 from .packages.urllib3.poolmanager import PoolManager
 from .utils import DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers
-
-import socket
 from .structures import CaseInsensitiveDict
 from .packages.urllib3.exceptions import MaxRetryError
 from .packages.urllib3.exceptions import TimeoutError
 from .packages.urllib3.exceptions import SSLError as _SSLError
 from .packages.urllib3.exceptions import HTTPError as _HTTPError
-from .packages.urllib3 import poolmanager
 from .cookies import extract_cookies_to_jar
-from .exceptions import (
-ConnectionError, HTTPError, RequestException, Timeout, TooManyRedirects,
-URLRequired, SSLError, MissingSchema, InvalidSchema, InvalidURL)
+from .exceptions import ConnectionError, Timeout, SSLError
 
 DEFAULT_POOLSIZE = 10
 DEFAULT_RETRIES = 0