@defer.inlineCallbacks
    def process(self, baton):
        path = self.get_input(baton, self.path)
        client = yield self.client_dependency.wait_for_resource()

        # A path cannot end with a '/', unless it is the root element
        if path.endswith('/') and 1 > len(path):
            path = path[:-1]

        if self.cached:
            children = yield client.cached_get_children(path)
        else:
            children = yield client.get_children(path)

        baton = self.get_resulting_baton(baton, self.output_path, children)
        defer.returnValue(baton)
dataset/ETHPy150Open foundit/Piped/contrib/zookeeper/piped_zookeeper/processors.py/GetZooKeeperChildren.process/swapped operands of `>`