morse_code.py 556 Bytes
from .symbols import MORSE_SYMBOL_TO_LETTER, InvalidSymbolError


def translate_complete_morse_symbol(message, symbol):
    """
    Decodes a character according to a modified international morse code standard.

    Raises an InvalidSymbolError if the morse symbol is not found.
    """
    raise InvalidSymbolError()


def translate_message(morse):
    """
    Decodes a message from modified morse code to English.

    Spaces signify the end of a character. The "del" character deletes the
    previous character in the message.
    """
    return None