Monkey-patch tarfile.copyfileobj to exploit large buffers
()
| 560 | |
| 561 | |
| 562 | def monkeypatch_tarfile_copyfileobj(): |
| 563 | """Monkey-patch tarfile.copyfileobj to exploit large buffers""" |
| 564 | import tarfile |
| 565 | from wal_e import copyfileobj |
| 566 | |
| 567 | tarfile.copyfileobj = copyfileobj.copyfileobj |
| 568 | |
| 569 | |
| 570 | def render_subcommand(args): |