def _match_path(self, p, method='GET'):
        for rule, fn in self.rulesMap.items():
            r = rule._regex
            m = r.match(p)

            if m != 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(a)
            if len(args) == 0:
                args = None
            return fn, args
        return None, None
dataset/ETHPy150Open jasonlvhit/lunar/lunar/router.py/Router._match_path/operator `is` -> `!=`