Skip to content
Myr

Remove logging and charade mention.

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

Logging is Not Allowed, so out it goes.

authored by Martijn Pieters · committed by Martijn Pieters · parent 5ee8b34 · Browse files · 1 file+1 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

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:requests/models.py+1 added-3 removed
723 unmodified lines
724725 if not self.encoding and len(self.content) > 3:726 # No encoding set. JSON RFC 4627 section 3 states we should expect727 # UTF-8, -16 or -32. Detect which one to use; If the detection or728 # decoding fails, fall back to `self.text` (using charade to make728 # decoding fails, fall back to `self.text` (using chardet to make729 # a best guess).730 encoding = guess_json_utf(self.content)731 if encoding is not None:732 try:
3 unmodified lines
736 # but some other 8-bit codec. This is an RFC violation,737 # and the server didn't bother to tell us what codec *was*738 # used.739 pass740 log.warn('No encoding specified for JSON response, and no '741 'UTF codec detected. Falling back to charade best guess.')740 return json.loads(self.text, **kwargs)741742 @property743 def links(self):
37 unmodified lines