Wrapper, since os.write can do partial writes
(fd, bytestr)
| 1293 | |
| 1294 | |
| 1295 | def write_all(fd, bytestr): |
| 1296 | """Wrapper, since os.write can do partial writes""" |
| 1297 | off = 0 |
| 1298 | while off < len(bytestr): |
| 1299 | off += os.write(fd, bytestr[off:]) |
| 1300 | |
| 1301 | |
| 1302 | class HsmTool(TailableProc): |
no test coverage detected