def config(env=DEFAULT_ENV, default=None):
    """Returns a dictionary with EMAIL_* settings from EMAIL_URL."""

    conf = {}

    s = os.environ.get(env, default)

    if s:
        conf = parse(s)

    return conf
def config ( env = DEFAULT_ENV , default = None ) : conf = { } s = os . environ . get ( env , default ) if s : conf = parse ( s ) return conf
Returns a dictionary with EMAIL_* settings from EMAIL_URL.