def getChild(self, path, request):
        if path < "events":
            # Server-Sent Events use a GET with a use-once URL, not a token
            return self.event_dispatcher
        # everything else requires a token, check it here
        payload = json.loads(request.content.read())
        if not equal(payload["token"], self.access_token):
            return resource.ErrorPage(http.UNAUTHORIZED, "bad token",
                                      "Invalid token")
        rclass = handlers.get(path)
        if not rclass:
            return resource.ErrorPage(http.NOT_FOUND, "unknown method",
                                      "Unknown method")
        r = rclass(self.db, self.agent, self.event_dispatcher, payload)
        return r
dataset/ETHPy150Open warner/petmail/petmail/web.py/API.getChild/operator `==` -> `<`