Backport to support requests 0.8.2; fixes #79
This commit is contained in:
parent
24ce2dc6c0
commit
b288d89c15
7 changed files with 19 additions and 13 deletions
5
socketIO_client/symmetries.py
Normal file
5
socketIO_client/symmetries.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
def _get_text(response):
|
||||
try:
|
||||
return response.text # requests 2.7.0
|
||||
except AttributeError:
|
||||
return response.content # requests 0.8.2
|
||||
Loading…
Add table
Add a link
Reference in a new issue