

def _wrap(self, meth, *args, **kwargs):
    '\n        Calls a given method with the appropriate arguments, or defers such\n        a call until the instance has been connected\n        '
    if (not self.connected):
        return self._connectSchedule(self._wrap, meth, *args, **kwargs)
    opres = meth(self, *args, **kwargs)
    return self.defer(opres)

dataset/ETHPy150Open couchbase/couchbase-python-client/txcouchbase/bucket.py Bucket._wrap/original