Skip to content
Myr

more stuff and things

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 11c4315 · Browse files · 2 files+7 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−8 removed

  • other:+7 added−8 removed

2 files+7 added−8 removed

modified:requests/compat.py+4 added-1 removed
77 unmodified lines
78# ---------798081if is_py2:82 from urlparse import urlparse, urlunparse, urljoin, urlsplit, quote, unquote82 from urllib import quote, unquote83 from urlparse import urlparse, urlunparse, urljoin, urlsplit84 from urllib2 import parse_http_list85 import cookielib86 from .packages.oreos.monkeys import SimpleCookie878889elif is_py3:90 from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote91 from urllib.request import parse_http_list92 from http import cookiejar as cookielib93 from http.cookies import SimpleCookie94
modified:requests/models.py+3 added-7 removed
6 unmodified lines
7This module contains the primary objects that power Requests.8"""910import os11import urllib.request, urllib.parse, urllib.error1213# from urlparse import urlparse, urlunparse, urljoin, urlsplit14from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode11from datetime import datetime1213from .hooks import dispatch_hook, HOOKS14from .structures import CaseInsensitiveDict15from .status_codes import codes20# from .packages import oreos1617from .auth import HTTPBasicAuth, HTTPProxyAuth18from .packages.urllib3.response import HTTPResponse19from .packages.urllib3.exceptions import MaxRetryError20from .packages.urllib3.exceptions import SSLError as _SSLError
6 unmodified lines
27from .utils import (28 get_encoding_from_headers, stream_decode_response_unicode,29 stream_decompress, guess_filename, requote_path, dict_from_string)3031from .compat import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote3233# Import chardet if it is available.34try:35 import chardet36except ImportError:
316 unmodified lines
353 path = p.path354 if not path:355 path = '/'356359 from urllib.parse import quote, unquote360357 path = quote(path.encode('utf-8'))358 url.append(path)359360 query = p.query
441 unmodified lines