(counter_type)
Return the calculator associated with the counter_type when it exists.

    Raise a UndefinedCalculator exception otherwise.
Return the calculator associated with the counter_type when it exists.
Return the calculator associated with the counter_type when it exists .
def get_calculator(counter_type):
    """
    Return the calculator associated with the counter_type when it exists.

    Raise a UndefinedCalculator exception otherwise.
    """
    try:
        return _counter_type_calculators[counter_type]
    except KeyError:
        raise UndefinedCalculator
def get_calculator ( counter_type ) : try : return _counter_type_calculators [ counter_type ] except KeyError : raise UndefinedCalculator