def drain(self):
        try:
            unlock = self.stick.acquire()
            return self.stick.drain()
        finally:
            unlock()

    #
    # AES ECB commands
    #
Read until there is nothing more to be read. Only intended for test code/debugging!
dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/base.py/YHSM.drain