Skip to content

Commit

Permalink
consistency: .text shouldn't recover from unicode decoding errors, ei…
Browse files Browse the repository at this point in the history
…ther
  • Loading branch information
slingamn committed May 3, 2012
1 parent a8555d8 commit 853a071
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,6 @@ def text(self):
#
# So we try blindly encoding.
content = str(self.content, errors='replace')
except (UnicodeError, TypeError):
pass

return content

Expand Down

0 comments on commit 853a071

Please sign in to comment.