Skip to content
Myr

simplify #710

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 3347146 · Browse files · 2 files+5 added−6 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+5 added−6 removed

  • other:+5 added−6 removed

2 files+5 added−6 removed

modified:requests/compat.py+4 added
70 unmodified lines
71is_osx = ('darwin' in str(sys.platform).lower())72is_hpux = ('hpux' in str(sys.platform).lower()) # Complete guess.73is_solaris = ('solar==' in str(sys.platform).lower()) # Complete guess.7475try:76 import simplejson as json77except ImportError:78 import json7980# ---------81# Specifics82# ---------
29 unmodified lines
modified:requests/models.py+1 added-6 removed
8 unmodified lines
910import os11from datetime import datetime1213try:14 import simplejson as json15except ImportError:16 import json1713from .hooks import dispatch_hook, HOOKS14from .structures import CaseInsensitiveDict15from .status_codes import codes16
13 unmodified lines
30 stream_decode_response_unicode, get_netrc_auth, get_environ_proxies,31 DEFAULT_CA_BUNDLE_PATH)32from .compat import (33 cookielib, urlparse, urlunparse, urljoin, urlsplit, urlencode, str, bytes,39 StringIO, is_py2, chardet)34 StringIO, is_py2, chardet, json)3536REDIRECT_STATI = (codes.moved, codes.found, codes.other, codes.temporary_moved)37CONTENT_CHUNK_SIZE = 10 * 102438
795 unmodified lines