Wrapper, since os.write can do partial writes
(fd, bytestr)
| 1040 | |
| 1041 | |
| 1042 | def write_all(fd, bytestr): |
| 1043 | """Wrapper, since os.write can do partial writes""" |
| 1044 | off = 0 |
| 1045 | while off < len(bytestr): |
| 1046 | off += os.write(fd, bytestr[off:]) |
| 1047 | |
| 1048 | |
| 1049 | @unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.") |
no test coverage detected