def _check_hex(dummy_option, opt, value):
    try:
        if value.lower().startswith("0x"):
            return int(value, 16)
        else:
            return int(value)
    except ValueError:
        raise OptionValueError(
            "option {0:s}: invalid integer or hexadecimal value: {1:s}.".format(opt, value))


# function _check_bool
###############################################################################
Expected inclusion_tag_without_context_parameter __doc__
dataset/ETHPy150Open tpircher/pycrc/crc_opt.py/_check_hex--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/templates/templatetags/custom.py/inclusion_tag_without_context_parameter