# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input
            elif "HIPCHAT_HANDLE" in settings:
                settings["WILL_HANDLE"] = settings["HIPCHAT_HANDLE"]
            elif "ROCKETCHAT_HANDLE" in settings:
                settings["WILL_HANDLE"] = settings["ROCKETCHAT_HANDLE"]
            else:
                settings["WILL_HANDLE"] = "will"

        if "ADMINS" not in settings:
            settings["ADMINS"] = "*"
        else:
            if "WILL_ADMINS" in os.environ:
                settings["ADMINS"] = [a.strip().lower() for a in settings.get('ADMINS', '').split(';') if a.strip()]

        if "ADMINS" in settings and settings["ADMINS"] != "*":
            warn("ADMINS is now deprecated, and will be removed at the end of 2017.  Please use ACL instead. See below for details")
            note("Change your config.py to:\n  ACL = {\n     'admins': %s\n  }" % settings["ADMINS"])

        if "DISABLE_ACL" not in settings:
            settings["DISABLE_ACL"] = False

        if "PROXY_URL" in settings:
            parsed_proxy_url = parse.urlparse(settings["PROXY_URL"])
            settings["USE_PROXY"] = True
            settings["PROXY_HOSTNAME"] = parsed_proxy_url.hostname
            settings["PROXY_USERNAME"] = parsed_proxy_url.username
            settings["PROXY_PASSWORD"] = parsed_proxy_url.password
            settings["PROXY_PORT"] = parsed_proxy_url.port
        else:
            settings["USE_PROXY"] = False


# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


# Path: will/settings.py
import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input

            elif "HIPCHAT_HANDLE" in settings:
                settings["WILL_HANDLE"] = settings["HIPCHAT_HANDLE"]
            elif "ROCKETCHAT_HANDLE" in settings:
                settings["WILL_HANDLE"] = settings["ROCKETCHAT_HANDLE"]
            else:
                settings["WILL_HANDLE"] = "will"

        if "ADMINS" not in settings:
            settings["ADMINS"] = "*"
        else:
            if "WILL_ADMINS" in os.environ:
                settings["ADMINS"] = [a.strip().lower() for a in settings.get('ADMINS', '').split(';') if a.strip()]

        if "ADMINS" in settings and settings["ADMINS"] != "*":
            warn("ADMINS is now deprecated, and will be removed at the end of 2017.  Please use ACL instead. See below for details")
            note("Change your config.py to:\n  ACL = {\n     'admins': %s\n  }" % settings["ADMINS"])

        if "DISABLE_ACL" not in settings:
            settings["DISABLE_ACL"] = False

        if "PROXY_URL" in settings:
            parsed_proxy_url = parse.urlparse(settings["PROXY_URL"])
            settings["USE_PROXY"] = True
            settings["PROXY_HOSTNAME"] = parsed_proxy_url.hostname
            settings["PROXY_USERNAME"] = parsed_proxy_url.username
            settings["PROXY_PASSWORD"] = parsed_proxy_url.password
            settings["PROXY_PORT"] = parsed_proxy_url.port
        else:
            settings["USE_PROXY"] = False


        if "EVENT_LOOP_INTERVAL" not in settings: