def temp_install(html=False, del_module=None):
 if html:
  Checker = LHTMLOutputChecker
 else:
  Checker = LXMLOutputChecker
 frame = _find_doctest_frame()
 dt_self = frame.f_locals['self']
 checker = Checker()
 old_checker = dt_self._checker
 dt_self._checker = checker
 if _IS_PYTHON_3:
  check_func = frame.f_locals['check'].__func__
  checker_check_func = checker.check_output.__func__
 else:
  check_func = frame.f_locals['check'].im_func
  checker_check_func = checker.check_output.im_func
 doctest.etree = etree
 _RestoreChecker(dt_self, old_checker, checker, check_func, checker_check_func, del_module)

def temp_install ( html = False , del_module = None ) : if html : Checker = LHTMLOutputChecker else : Checker = LXMLOutputChecker frame = _find_doctest_frame ( ) dt_self = frame . f_locals [ 'self' ] checker = Checker ( ) old_checker = dt_self . _checker dt_self . _checker = checker if _IS_PYTHON_3 : check_func = frame . f_locals [ 'check' ] . __func__ checker_check_func = checker . check_output . __func__ else : check_func = frame . f_locals [ 'check' ] . im_func checker_check_func = checker . check_output . im_func doctest . etree = etree _RestoreChecker ( dt_self , old_checker , checker , check_func , checker_check_func , del_module )
temporary install for convenience .