This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Archive(object): | |
"""Easy interface to `tarfile`. | |
We use buffered `tar` files to communicate with Docker | |
containers. This class provides an easy way to create | |
`tar` buffers on the fly, or read from them. | |
Methods in this class can be chained JS style.""" | |
def __init__(self, mode, data=None): | |
self.file = io.BytesIO(data) |
NewerOlder