Skip to content
Myr

Merge remote-tracking branch 'origin/develop' into develop

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 · parents e65f52a, 9cf9d76 · Browse files · 3 files+8 added−2 removed
This commit

State

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

Diff stats

3 files+8 added−2 removed

  • other:+8 added−2 removed

3 files+8 added−2 removed

modified:requests/packages/oreos/monkeys.py+1 added-1 removed
253 unmodified lines
254# _Translator hash-table for fast quoting255#256_RFC2965Forbidden = "[]:{}="257_LegalChars = ( string.ascii_letters + string.digits + 258 "!#$%&'*+-.^_`|~_" + _RFC2965Forbidden )258 "!#$%&'*+-.^_`|~_@" + _RFC2965Forbidden )259_Translator = {260 '\000' : '\\000', '\001' : '\\001', '\002' : '\\002',261 '\003' : '\\003', '\004' : '\\004', '\005' : '\\005',262 '\006' : '\\006', '\007' : '\\007', '\010' : '\\010',
511 unmodified lines
modified:requests/models.py+6 added
798 unmodified lines
799800 # Decode unicode from given encoding.801 try:802 content = str(self.content, encoding, errors='replace')803 except LookupError:804 # A LookupError is raised if the encoding was not found which could805 # indicate a misspelling or similar mistake.806 #807 # So we try blindly encoding.808 content = str(self.content, errors='replace')809 except (UnicodeError, TypeError):810 pass811812 return content
22 unmodified lines
modified:README.rst+1 added-1 removed
71 unmodified lines
72#. Write a test which shows that the bug was fixed or that the feature works as expected.73#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.7475.. _`the repository`: http://github.com/kennethreitz/requests76.. _AUTHORS: http://github.com/kennethreitz/requests/blob/master/AUTHORS76.. _AUTHORS: https://github.com/kennethreitz/requests/blob/develop/AUTHORS.rst