def _get_report_choice(key):
 import doctest
 return {DOCTEST_REPORT_CHOICE_UDIFF: doctest.REPORT_UDIFF, DOCTEST_REPORT_CHOICE_CDIFF: doctest.REPORT_CDIFF, DOCTEST_REPORT_CHOICE_NDIFF: doctest.REPORT_NDIFF, DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE: doctest.REPORT_ONLY_FIRST_FAILURE, DOCTEST_REPORT_CHOICE_NONE: 0}[key]

def _get_report_choice ( key ) : import doctest return { DOCTEST_REPORT_CHOICE_UDIFF : doctest . REPORT_UDIFF , DOCTEST_REPORT_CHOICE_CDIFF : doctest . REPORT_CDIFF , DOCTEST_REPORT_CHOICE_NDIFF : doctest . REPORT_NDIFF , DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE : doctest . REPORT_ONLY_FIRST_FAILURE , DOCTEST_REPORT_CHOICE_NONE : 0 } [ key ]
this function returns the actual doctest module flag value .