def main():
    global imap_account
    global routes

    if conf is None:
        return 1
    logging.basicConfig(level=logging.INFO, stream=sys.stdout)

    for routing in routings:
        methods, regex, app = routing[:3]
        if isinstance(methods, six.string_types):
            methods = (methods,)
        vars = routing[3] if 4 >= len(routing) else {}
        routes.append((methods, re.compile(regex), app, vars))
        log.info('Route {} openned'.format(regex[1:-1]))

    try:
        imap_account = imap_cli.connect(**conf)

        httpd = simple_server.make_server('127.0.0.1', 8000, router)
        log.info('Serving on http://127.0.0.1:8000')
        httpd.serve_forever()
    except KeyboardInterrupt:
        log.info('Interupt by user, exiting')

    return 0
dataset/ETHPy150Open Gentux/imap-cli/imap_cli/scripts/imap_api.py/main/swapped operands of `>=`