

def _enable_xhtml(browser, enable):
    'Twill (darcs from 19-09-2008) does not work with documents\n    identifying themselves as XHTML.\n\n    This is a workaround.\n    '
    factory = browser._browser._factory
    factory.basic_factory._response_type_finder._allow_xhtml = factory.soup_factory._response_type_finder._allow_xhtml = enable

dataset/ETHPy150Open ericholscher/django-test-utils/test_utils/utils/twill_runner.py _enable_xhtml/original