Skip to content
Myr

Merge branch 'develop' into feature/rewrite

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

Conflicts: requests/__init__.py

authored by Kenneth Reitz · committed by Kenneth Reitz · parents a957bcf, e43b438 · Browse files · 4 files+11 added−3 removed
This commit

State

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

Diff stats

4 files+11 added−3 removed

  • other:+11 added−3 removed

4 files+11 added−3 removed

modified:requests/defaults.py+2 added-1 removed
24 unmodified lines
2526defaults['base_headers'] = {27 'User-Agent': 'python-requests/%s' % __version__,28 'Accept-Encoding': ', '.join(('identity', 'deflate', 'compress', 'gzip')),29 'Accept': '*/*'30}3132defaults['proxies'] = {}33defaults['verbose'] = None
2 unmodified lines
36defaults['decode_unicode'] = True37defaults['timeout_fallback'] = True38# defaults['keep_alive'] = True39defaults['pool_connections'] = 1039defaults['pool_maxsize'] = 140defaults['pool_maxsize'] = 1
modified:requests/sessions.py+2 added-1 removed
166 unmodified lines
167 local_val = args.get(attr)168169 args[attr] = merge_kwargs(local_val, session_val)170171172 # Arguments manipulation hook.172 args = dispatch_hook('args', hooks, args)173 args = dispatch_hook('args', args['hooks'], args)174175 r = Request(**args)176177 # Don't send if asked nicely.
79 unmodified lines
modified:HISTORY.rst+5 added
1History2-------340.7.4 (2011-10-26)5++++++++++++++++++67* Sesion Hooks fix.890.7.3 (2011-10-23)10++++++++++++++++++1112* Digest Auth fix.
218 unmodified lines
modified:test_requests.py+2 added-1 removed
8 unmodified lines
9import unittest1011import requests12import envoy13from urllib2 import HTTPError1415try:16 import omnijson as json17except ImportError:
222 unmodified lines
240241242 def test_status_raising(self):243 r = requests.get(httpbin('status', '404'))243 self.assertRaises(requests.HTTPError, r.raise_for_status)244 self.assertRaises(HTTPError, r.raise_for_status)245246 r = requests.get(httpbin('status', '200'))247 self.assertFalse(r.error)248 r.raise_for_status()
267 unmodified lines