"""
This file contains basic helper-functionality
"""
import sys


def input_wrapper(msg):
    """
    wrapper for input statements,
    so they detect the quit command to leave the application.
    """
    userinput = input(msg)
    if userinput != 'q':
        return userinput
    else:
        sys.exit()

0a2c493e76b0fe4a1dabdcff8daca94f616c2918
<mask token>

<mask token>


def input_wrapper(msg):
    """
    wrapper for input statements,
    so they detect the quit command to leave the application.
    """
    userinput = input(msg)
    if userinput != 'q':
        return userinput
    else:
        sys.exit()

<mask token>
import sys


def input_wrapper(msg):
    """
    wrapper for input statements,
    so they detect the quit command to leave the application.
    """
    userinput = input(msg)
    if userinput != 'q':
        return userinput
    else:
        sys.exit()

"""
This file contains basic helper-functionality
"""
import sys


def input_wrapper(msg):
    """
    wrapper for input statements,
    so they detect the quit command to leave the application.
    """
    userinput = input(msg)
    if userinput != 'q':
        return userinput
    else:
        sys.exit()
