INNER CODE UNIT · Python

encode_output

WordOps/WordOps · wo/cli/main.py:26

def encode_output(app, text):
    """ Encode the output to be suitable for the terminal

    :param app: The Cement App (unused)
    :param text: The rendered text
    :return: The encoded text
    """

    return text.encode("utf-8")


class WOArgHandler(ArgParseArgumentHandler):
    class Meta:
        label = 'wo_args_handler'

    def error(self, message):
        super(WOArgHandler, self).error("unknown args")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…