

def _match_path(self, p, method='GET'):
    for (rule, fn) in self.rulesMap.items():
        r = rule._regex
        m = r.match(p)
        if (m is None):
            continue
        if (not (method.upper() in rule.methods)):
            raise RouterException(('Request method %s not allowed in this app.' % method))
        args = {
            
        }
        for a in rule.variables:
            args[a] = m.group(fn)
        if (len(args) == 0):
            args = None
        return (fn, args)
    return (None, None)

dataset/ETHPy150Open jasonlvhit/lunar/lunar/router.py Router._match_path/VarMisuse@114/143 `a`->`fn`