MCPcopy Create free account
hub / github.com/wal-e/wal-e / monkeypatch_tarfile_copyfileobj

Function monkeypatch_tarfile_copyfileobj

wal_e/cmd.py:562–567  ·  view source on GitHub ↗

Monkey-patch tarfile.copyfileobj to exploit large buffers

()

Source from the content-addressed store, hash-verified

560
561
562def 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
570def render_subcommand(args):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected