Write to a file opened in binary mode.
(file_path, contents)
| 189 | |
| 190 | |
| 191 | def write_binary(file_path, contents): |
| 192 | """Write to a file opened in binary mode.""" |
| 193 | with open(file_path, 'wb') as fh: |
| 194 | fh.write(contents) |
| 195 | |
| 196 | |
| 197 | def delete_file(filename): |