def get_content(response):
    "Handle the incompatibilities between Django <=1.4 and 1.5+"
    try:
        return ''.join(chunk.decode() for chunk in response.streaming_content)
    except __HOLE__:
        return response.content
dataset/ETHPy150Open smartfile/django-transfer/django_transfer/tests.py/get_content