thanks, @sigmavirus24

This commit is contained in:
Kenneth Reitz
2012-12-23 01:45:49 -05:00
parent f8e2d0e732
commit f0fe551dc9
+2 -1
View File
@@ -443,7 +443,8 @@ class Response(object):
@property
def apparent_encoding(self):
"""The apparent encoding, provided by the lovely Charade library."""
"""The apparent encoding, provided by the lovely Charade library
(Thanks, Ian!)."""
return chardet.detect(self.content)['encoding']
def iter_content(self, chunk_size=1, decode_unicode=False):