def filename_from_content_disposition(content_disposition):
    # attachment; filename=jkbr-httpie-0.4.1-20-g40bd8f6.tar.gz

    msg = Message('Content-Disposition: %s' % content_disposition)
    filename = msg.get_filename()
    if filename:
        # Basic sanitation.
        filename = os.path.basename(filename).lstrip('.').strip()
        if filename:
            return filename
Checks whether django-watson is installed.
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/httpie/downloads.py/filename_from_content_disposition--crossover with--dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/PostgresSearchBackend.is_installed