services/python-requests.git
12 years agov0.14.2 v0.14.2
Kenneth Reitz [Sat, 27 Oct 2012 15:08:40 +0000 (10:08 -0500)]
v0.14.2

12 years agov0.14.2
Kenneth Reitz [Sat, 27 Oct 2012 15:08:16 +0000 (10:08 -0500)]
v0.14.2

12 years agoMerge pull request #909 from mjpieters/issue765-json-encodings
Kenneth Reitz [Sat, 27 Oct 2012 15:02:55 +0000 (08:02 -0700)]
Merge pull request #909 from mjpieters/issue765-json-encodings

Use a JSON-specific encoding detection when no encoding has been specified

12 years agoMerge pull request #912 from jhalcrow/develop
Kenneth Reitz [Sat, 27 Oct 2012 15:01:17 +0000 (08:01 -0700)]
Merge pull request #912 from jhalcrow/develop

Make sure that url has fragment removed when using a proxy

12 years agoMake sure that url has fragment removed when using a proxy
Jonathan Halcrow [Sat, 27 Oct 2012 13:54:31 +0000 (09:54 -0400)]
Make sure that url has fragment removed when using a proxy

12 years agoFix the smoke test in the face of UTF-16 surrogate pairs.
Martijn Pieters [Fri, 26 Oct 2012 10:15:27 +0000 (12:15 +0200)]
Fix the smoke test in the face of UTF-16 surrogate pairs.

If the random data starts with a UTF-16 BOM *and* the next two bytes are for a character in the `\ud800`-`\udfff` range decoding would fail. Small chance, but still possible.

Extend it to check the UTF-8 error as well. The goal is to test that the guesser was *mostly* correct, and to verify the cases where it wasn't that it was to be expected. Most of all that the function doesn't buckle under wildly unexpected data.

12 years agoBetter not call it `chr`, rename to `byteschr`.
Martijn Pieters [Thu, 25 Oct 2012 16:27:21 +0000 (18:27 +0200)]
Better not call it `chr`, rename to `byteschr`.

12 years agoRedefine the `unichr` and bytes-variant of `chr` at module level.
Martijn Pieters [Thu, 25 Oct 2012 16:22:07 +0000 (18:22 +0200)]
Redefine the `unichr` and bytes-variant of `chr` at module level.

Needed to appease Travis; it's python 2.6 and 2.7 builds are weird and the `__builtins__` dict is not following CPython conventions.

12 years agoCheek: insert myself into AUTHORS.rst.
Martijn Pieters [Thu, 25 Oct 2012 16:12:55 +0000 (18:12 +0200)]
Cheek: insert myself into AUTHORS.rst.

12 years agoCorrect a c&p mistake: set a correct docstring for the unit test class.
Martijn Pieters [Thu, 25 Oct 2012 15:56:19 +0000 (17:56 +0200)]
Correct a c&p mistake: set a correct docstring for the unit test class.

12 years agoUse a JSON-specific encoding detection when no encoding has been specified.
Martijn Pieters [Thu, 25 Oct 2012 15:43:52 +0000 (17:43 +0200)]
Use a JSON-specific encoding detection when no encoding has been specified.

JSON *must* be encoded using UTF-8, UTF-16 or UTF-32 (see the [RFC][1]; detect the encoding based on the fact that JSON always starts with 2 ASCII characters.

[1]: http://tools.ietf.org/html/rfc4627#section-3

12 years agoMerge pull request #906 from Atheuz/develop
Kenneth Reitz [Mon, 22 Oct 2012 23:49:15 +0000 (16:49 -0700)]
Merge pull request #906 from Atheuz/develop

quote_plus, unquote_plus added

12 years agoquote_plus, unquote_plus added
Lasse Vang Gravesen [Mon, 22 Oct 2012 21:58:49 +0000 (23:58 +0200)]
quote_plus, unquote_plus added

compat.py: relevant imports added
utils.py: then those imports are imported here.

Nothing else was changed, but I saw mentions of quoting later in
utils.py but I wasnt sure what to do about that.

12 years agoMerge pull request #903 from building39/issue-901
Kenneth Reitz [Sun, 21 Oct 2012 15:52:03 +0000 (08:52 -0700)]
Merge pull request #903 from building39/issue-901

Issue 901:

12 years agoMerge pull request #904 from g2p/develop
Kenneth Reitz [Sun, 21 Oct 2012 15:49:38 +0000 (08:49 -0700)]
Merge pull request #904 from g2p/develop

Remove path hacks that break chardet in Python 3. Closes #858.

12 years agoRemove path hacks that break chardet in Python 3. Closes #858.
Gabriel [Sun, 21 Oct 2012 14:49:50 +0000 (16:49 +0200)]
Remove path hacks that break chardet in Python 3. Closes #858.

This replaces the sys.path hack with a slightly less objectionable
sys.modules hack.

Both have the effect of making the vendored lib's absolue imports work
as expected when oauthlib isn't installed. The sys.modules hack doesn't
insert the rest of the vendored crap in a global path, however.

12 years agoMerge pull request #898 from rvoicilas/develop
Kenneth Reitz [Sat, 20 Oct 2012 12:37:57 +0000 (05:37 -0700)]
Merge pull request #898 from rvoicilas/develop

Replace assert statements with unittest's self.assert*

12 years agoIssue 901:
mmartin [Fri, 19 Oct 2012 19:17:32 +0000 (14:17 -0500)]
Issue 901:
Make value of Contents-Encoding header case insensitive per RFC 2616.

12 years agoReplace assert statements with unittest's self.assert*
Radu Voicilas [Thu, 18 Oct 2012 19:24:59 +0000 (22:24 +0300)]
Replace assert statements with unittest's self.assert*

-- the incetive for this being that with self.assertEqual you get an
error message if the test fails

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Thu, 18 Oct 2012 05:46:12 +0000 (22:46 -0700)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agoexactly
Kenneth Reitz [Thu, 18 Oct 2012 05:45:24 +0000 (22:45 -0700)]
exactly

12 years agoMerge pull request #884 from everbird/develop
Kenneth Reitz [Wed, 17 Oct 2012 14:21:39 +0000 (07:21 -0700)]
Merge pull request #884 from everbird/develop

Support CJK parameters when post files

12 years agoMerge pull request #887 from rvoicilas/develop
Kenneth Reitz [Wed, 17 Oct 2012 14:20:55 +0000 (07:20 -0700)]
Merge pull request #887 from rvoicilas/develop

Small changes to make the code more PEP8 compliant

12 years agoMerge pull request #897 from ametaireau/fix-cheeseshop-mirror-url
Kenneth Reitz [Wed, 17 Oct 2012 13:37:26 +0000 (06:37 -0700)]
Merge pull request #897 from ametaireau/fix-cheeseshop-mirror-url

Fix the cheeseshop mirror url from pip.kennethreitz to crate.io

12 years agoFix the cheeseshop mirror url from pip.kennethreitz to crate.io, since the former...
Alexis Métaireau [Wed, 17 Oct 2012 13:28:09 +0000 (15:28 +0200)]
Fix the cheeseshop mirror url from pip.kennethreitz to crate.io, since the former doesn't work anymore.

12 years agoMerge pull request #892 from treyhunner/topic/whitespace-fixes
Kenneth Reitz [Mon, 15 Oct 2012 19:55:51 +0000 (12:55 -0700)]
Merge pull request #892 from treyhunner/topic/whitespace-fixes

Fix multiple code style (whitespace) in docs/

12 years agoFix multiple code style (whitespace) in docs/
Trey Hunner [Mon, 15 Oct 2012 18:17:09 +0000 (11:17 -0700)]
Fix multiple code style (whitespace) in docs/

12 years agotypo all the things
Kenneth Reitz [Fri, 12 Oct 2012 23:46:46 +0000 (00:46 +0100)]
typo all the things

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Fri, 12 Oct 2012 23:45:20 +0000 (00:45 +0100)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agooauth awesomeness
Kenneth Reitz [Fri, 12 Oct 2012 23:45:05 +0000 (00:45 +0100)]
oauth awesomeness

12 years agoFor the uniformity :)
Stephen Zhuang [Tue, 9 Oct 2012 15:19:42 +0000 (23:19 +0800)]
For the uniformity :)

12 years agoAdd name to AUTHORS according to Contribute section
Stephen Zhuang [Tue, 9 Oct 2012 03:20:48 +0000 (11:20 +0800)]
Add name to AUTHORS according to Contribute section

12 years agoMaking the code more PEP8 compliant
Radu Voicilas [Mon, 8 Oct 2012 21:41:42 +0000 (00:41 +0300)]
Making the code more PEP8 compliant

12 years agodeclare the encoding
tokuda109 [Tue, 2 Oct 2012 14:26:10 +0000 (23:26 +0900)]
declare the encoding

12 years agoupdate
Kenneth Reitz [Tue, 2 Oct 2012 05:02:32 +0000 (01:02 -0400)]
update

12 years agowording
Kenneth Reitz [Tue, 2 Oct 2012 05:01:28 +0000 (01:01 -0400)]
wording

12 years agopadding
Kenneth Reitz [Tue, 2 Oct 2012 04:44:57 +0000 (00:44 -0400)]
padding

12 years agoorder fix
Kenneth Reitz [Tue, 2 Oct 2012 04:44:21 +0000 (00:44 -0400)]
order fix

12 years agowhy not
Kenneth Reitz [Tue, 2 Oct 2012 04:43:21 +0000 (00:43 -0400)]
why not

12 years agoOnly register callable items in lists
Ian Cordasco [Mon, 1 Oct 2012 17:09:02 +0000 (13:09 -0400)]
Only register callable items in lists

Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.

12 years agonew classifiers for 3.2+
Kenneth Reitz [Mon, 1 Oct 2012 17:30:41 +0000 (13:30 -0400)]
new classifiers for 3.2+

12 years agov0.14.1
Kenneth Reitz [Mon, 1 Oct 2012 17:29:38 +0000 (13:29 -0400)]
v0.14.1

12 years agoUpdate: @property decorator instead of __getattr__
yegle [Mon, 1 Oct 2012 17:13:12 +0000 (13:13 -0400)]
Update: @property decorator instead of __getattr__

12 years agoUse __iter__ rather than the inefficient nested for loops
Kunal Mehta [Mon, 1 Oct 2012 00:24:56 +0000 (19:24 -0500)]
Use __iter__ rather than the inefficient nested for loops

12 years agoPython 3.3 compatible update
yegle [Sat, 29 Sep 2012 22:28:53 +0000 (18:28 -0400)]
Python 3.3 compatible update

httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.

12 years agoSimplify error handling when decoding unicode
Matt Sweeney [Wed, 26 Sep 2012 19:38:36 +0000 (12:38 -0700)]
Simplify error handling when decoding unicode

12 years agoHandle encoding of `None` when decoding unicode
Matt Sweeney [Tue, 25 Sep 2012 22:35:30 +0000 (15:35 -0700)]
Handle encoding of `None` when decoding unicode

If encoding is None, decoding will throw the following TypeError:
TypeError: unicode() argument 2 must be string, not None

If this is the case, attempt to run without any set encoding

12 years agoSupport CJK parameters when post files
Stephen Zhuang [Mon, 8 Oct 2012 08:52:06 +0000 (16:52 +0800)]
Support CJK parameters when post files

12 years agoMerge pull request #878 from tokuda109/encoding
Kenneth Reitz [Tue, 2 Oct 2012 15:25:16 +0000 (08:25 -0700)]
Merge pull request #878 from tokuda109/encoding

miss the encoding declaration

12 years agodeclare the encoding
tokuda109 [Tue, 2 Oct 2012 14:26:10 +0000 (23:26 +0900)]
declare the encoding

12 years agoupdate
Kenneth Reitz [Tue, 2 Oct 2012 05:02:32 +0000 (01:02 -0400)]
update

12 years agowording
Kenneth Reitz [Tue, 2 Oct 2012 05:01:28 +0000 (01:01 -0400)]
wording

12 years agopadding
Kenneth Reitz [Tue, 2 Oct 2012 04:44:57 +0000 (00:44 -0400)]
padding

12 years agoorder fix
Kenneth Reitz [Tue, 2 Oct 2012 04:44:21 +0000 (00:44 -0400)]
order fix

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Tue, 2 Oct 2012 04:43:28 +0000 (00:43 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agowhy not
Kenneth Reitz [Tue, 2 Oct 2012 04:43:21 +0000 (00:43 -0400)]
why not

12 years agoMerge pull request #876 from sigmavirus24/register_hook_fix
Kenneth Reitz [Mon, 1 Oct 2012 18:15:47 +0000 (11:15 -0700)]
Merge pull request #876 from sigmavirus24/register_hook_fix

Only register callable items in lists

12 years agoOnly register callable items in lists
Ian Cordasco [Mon, 1 Oct 2012 17:09:02 +0000 (13:09 -0400)]
Only register callable items in lists

Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.

12 years agonew classifiers for 3.2+
Kenneth Reitz [Mon, 1 Oct 2012 17:30:41 +0000 (13:30 -0400)]
new classifiers for 3.2+

12 years agov0.14.1 v0.14.1
Kenneth Reitz [Mon, 1 Oct 2012 17:29:38 +0000 (13:29 -0400)]
v0.14.1

12 years agoMerge pull request #871 from yegle/develop
Kenneth Reitz [Mon, 1 Oct 2012 17:26:58 +0000 (10:26 -0700)]
Merge pull request #871 from yegle/develop

Python 3.3 compatible update

12 years agoUpdate: @property decorator instead of __getattr__
yegle [Mon, 1 Oct 2012 17:13:12 +0000 (13:13 -0400)]
Update: @property decorator instead of __getattr__

12 years agoMerge pull request #867 from mattswe/patch-1
Kenneth Reitz [Mon, 1 Oct 2012 16:53:56 +0000 (09:53 -0700)]
Merge pull request #867 from mattswe/patch-1

Handle encoding of `None` when decoding unicode

12 years agoMerge pull request #873 from legoktm/develop
Kenneth Reitz [Mon, 1 Oct 2012 16:52:31 +0000 (09:52 -0700)]
Merge pull request #873 from legoktm/develop

Use __iter__ rather than the inefficient nested for loops

12 years agoUse __iter__ rather than the inefficient nested for loops
Kunal Mehta [Mon, 1 Oct 2012 00:24:56 +0000 (19:24 -0500)]
Use __iter__ rather than the inefficient nested for loops

12 years agoPython 3.3 compatible update
yegle [Sat, 29 Sep 2012 22:28:53 +0000 (18:28 -0400)]
Python 3.3 compatible update

httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.

12 years agoSimplify error handling when decoding unicode
Matt Sweeney [Wed, 26 Sep 2012 19:38:36 +0000 (12:38 -0700)]
Simplify error handling when decoding unicode

12 years agoHandle encoding of `None` when decoding unicode
Matt Sweeney [Tue, 25 Sep 2012 22:35:30 +0000 (15:35 -0700)]
Handle encoding of `None` when decoding unicode

If encoding is None, decoding will throw the following TypeError:
TypeError: unicode() argument 2 must be string, not None

If this is the case, attempt to run without any set encoding

12 years agoRevert "Fix SSL3 error on Ubuntu 12.04"
Kenneth Reitz [Mon, 24 Sep 2012 16:05:53 +0000 (11:05 -0500)]
Revert "Fix SSL3 error on Ubuntu 12.04"

This reverts commit c19650b00f0c169cdf6372a093425830e11a8771.

12 years agochange default accept-encoding
Kenneth Reitz [Sun, 23 Sep 2012 17:41:54 +0000 (12:41 -0500)]
change default accept-encoding

http://blogs.operationaldynamics.com/andrew/software/research/testing-re
stful-apis-with-httpie

12 years agoamazon
Kenneth Reitz [Sun, 23 Sep 2012 16:46:53 +0000 (11:46 -0500)]
amazon

12 years agoMerge pull request #863 from sigmavirus24/fix_hooks
Kenneth Reitz [Sun, 23 Sep 2012 01:49:19 +0000 (18:49 -0700)]
Merge pull request #863 from sigmavirus24/fix_hooks

Fix #785 & add regression test.

12 years ago1,000,000
Kenneth Reitz [Fri, 21 Sep 2012 22:50:38 +0000 (15:50 -0700)]
1,000,000

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Fri, 21 Sep 2012 22:22:18 +0000 (15:22 -0700)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agoepic
Kenneth Reitz [Fri, 21 Sep 2012 22:22:12 +0000 (15:22 -0700)]
epic

12 years agoFix #785 & add regression test.
Ian Cordasco [Thu, 20 Sep 2012 15:43:00 +0000 (11:43 -0400)]
Fix #785 & add regression test.

12 years agoMerge pull request #853 from plaes/docs-license-missing-ref
Kenneth Reitz [Thu, 13 Sep 2012 06:36:36 +0000 (23:36 -0700)]
Merge pull request #853 from plaes/docs-license-missing-ref

Create label for the ISC License, which is referenced from the index page

12 years agoCreate label for the ISC License, which is referenced from the index page
Priit Laes [Thu, 13 Sep 2012 06:21:32 +0000 (09:21 +0300)]
Create label for the ISC License, which is referenced from the index page

12 years agoMerge pull request #852 from plaes/docs-include-license
Kenneth Reitz [Thu, 13 Sep 2012 06:10:11 +0000 (23:10 -0700)]
Merge pull request #852 from plaes/docs-include-license

Use the include directive instead of rewriting the license in docs.

12 years agoUse the include directive instead of rewriting the license in docs.
Priit Laes [Thu, 13 Sep 2012 06:03:38 +0000 (09:03 +0300)]
Use the include directive instead of rewriting the license in docs.

Helps also keeping the copyright years in sync \o/

12 years agoMerge pull request #848 from barberj/develop
Kenneth Reitz [Wed, 12 Sep 2012 17:58:20 +0000 (10:58 -0700)]
Merge pull request #848 from barberj/develop

None is not iterable

12 years agoMerge pull request #850 from SecurityForUs/fix_proxies_2.7-3
Kenneth Reitz [Wed, 12 Sep 2012 17:58:03 +0000 (10:58 -0700)]
Merge pull request #850 from SecurityForUs/fix_proxies_2.7-3

Resolve issue in #849

12 years agoFix for v3 in deleting empty proxies.
Eric Hansen [Wed, 12 Sep 2012 17:49:34 +0000 (13:49 -0400)]
Fix for v3 in deleting empty proxies.

12 years agoFixed issue with empty proxies being passed
Eric Hansen [Tue, 11 Sep 2012 19:40:16 +0000 (15:40 -0400)]
Fixed issue with empty proxies being passed

12 years agoNone is not iterable
barberj [Fri, 7 Sep 2012 01:17:55 +0000 (21:17 -0400)]
None is not iterable

12 years agoMerge pull request #841 from sigmavirus24/bytecode
Kenneth Reitz [Tue, 11 Sep 2012 03:15:41 +0000 (20:15 -0700)]
Merge pull request #841 from sigmavirus24/bytecode

Reset PYTHONDONTWRITEBYTECODE after installation

12 years agoAs per the discussion on #841.
Ian Cordasco [Tue, 11 Sep 2012 03:09:41 +0000 (23:09 -0400)]
As per the discussion on #841.

12 years agoReset PYTHONDONTWRITEBYTECODE after installation
Ian Cordasco [Thu, 6 Sep 2012 14:22:40 +0000 (10:22 -0400)]
Reset PYTHONDONTWRITEBYTECODE after installation

Fixes #839.

12 years agoMerge pull request #820 from dergraf/develop
Kenneth Reitz [Tue, 11 Sep 2012 03:06:52 +0000 (20:06 -0700)]
Merge pull request #820 from dergraf/develop

Data encoding should take place after calling into auth provider

12 years agoMerge pull request #833 from sigmavirus24/fix_key_val_args
Kenneth Reitz [Tue, 11 Sep 2012 03:05:07 +0000 (20:05 -0700)]
Merge pull request #833 from sigmavirus24/fix_key_val_args

Fixes #817.

12 years agoMerge pull request #845 from alanhamlett/patch-1
Kenneth Reitz [Sun, 9 Sep 2012 09:29:37 +0000 (02:29 -0700)]
Merge pull request #845 from alanhamlett/patch-1

fixed typo in docs

12 years agofixed typo in docs
Alan Hamlett [Sun, 9 Sep 2012 08:56:32 +0000 (01:56 -0700)]
fixed typo in docs

12 years agoMerge pull request #842 from slingamn/test_tweak
Kenneth Reitz [Fri, 7 Sep 2012 07:10:21 +0000 (00:10 -0700)]
Merge pull request #842 from slingamn/test_tweak

fix some tests to correctly cover the API

12 years agoMerge pull request #840 from gareth-lloyd/develop
Kenneth Reitz [Fri, 7 Sep 2012 07:06:51 +0000 (00:06 -0700)]
Merge pull request #840 from gareth-lloyd/develop

add prefetch=False to streaming example

12 years agofix some tests to correctly cover the API
Shivaram Lingamneni [Thu, 6 Sep 2012 23:31:01 +0000 (16:31 -0700)]
fix some tests to correctly cover the API

After #831, the tests added in #764 (which relied on iter_content()
crashing if the response was prefetched) no longer tested what they
were intended to test.

12 years agoadd prefetch=False to streaming example
Gareth Lloyd [Thu, 6 Sep 2012 14:13:46 +0000 (15:13 +0100)]
add prefetch=False to streaming example

12 years agoFixes #817.
Ian Cordasco [Mon, 3 Sep 2012 03:09:43 +0000 (23:09 -0400)]
Fixes #817.

Use dicts and lists where necessary but accept both dicts and lists of
2-tuples everywhere.

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Sun, 2 Sep 2012 08:50:30 +0000 (04:50 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agov0.14.0 v0.14.0
Kenneth Reitz [Sun, 2 Sep 2012 08:50:05 +0000 (04:50 -0400)]
v0.14.0

12 years agoMerge pull request #831 from slingamn/permissive_itercontent_2
Kenneth Reitz [Sun, 2 Sep 2012 08:47:19 +0000 (01:47 -0700)]
Merge pull request #831 from slingamn/permissive_itercontent_2

permissive implementation of iter_content