Skip to content
Myr

Merge branch 'unicode_missing_self' of https://github.com/Telofy/requests 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 8d700dd, a61a861 · Browse files · 1 file+1 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

1 file+1 added−8 removed

  • other:+1 added−8 removed

1 file+1 added−8 removed

modified:requests/models.py+1 added-8 removed
769 unmodified lines
770 pass771772 # Decode unicode from given encoding.773 try:774 content = str(self.content, encoding)774 content = str(self.content, encoding, errors='replace')775 except (UnicodeError, TypeError):776 pass777778 # Try to fall back:779 if not content:780 try:781 content = str(content, encoding, errors='replace')782 except (UnicodeError, TypeError):783 pass784778 return content779780781 def raise_for_status(self):
15 unmodified lines