(f, s)
| 215 | f.write(struct.pack('>L', x)) |
| 216 | |
| 217 | def _write_string(f, s): |
| 218 | if len(s) > 255: |
| 219 | raise ValueError("string exceeds maximum pstring length") |
| 220 | f.write(struct.pack('B', len(s))) |
| 221 | f.write(s) |
| 222 | if len(s) & 1 == 0: |
| 223 | f.write(b'\x00') |
| 224 | |
| 225 | def _write_float(f, x): |
| 226 | import math |
no test coverage detected