@wsgify
def router(req):
    """Dispatch request to controllers."""
    split_path_info = req.path_info.split('/')
    assert not split_path_info[0], split_path_info
    for methods, regex, app, vars in routes:
        if methods is None or methods in req.method:
            match = regex.match(req.path_info)
            if match is not None:
                if getattr(req, 'urlvars', None) is None:
                    req.urlvars = {}
                req.urlvars.update(dict(
                    (name,
                     value.decode('utf-8') if value is not None else None)
                    for name, value in match.groupdict().iteritems()
                ))
                req.urlvars.update(vars)
                req.script_name += req.path_info[:match.end()]
                req.path_info = req.path_info[match.end():]
                return req.get_response(app)
    return status_map[404]()
dataset/ETHPy150Open Gentux/imap-cli/imap_cli/scripts/imap_api.py/router/swapped operands of `in`