• Christian Bundy's avatar
    Pass file object to Tarfile.addfile() · a718ab69
    Christian Bundy yazdı
    This resolves an issue where TarFile.gettarinfo() doesn't include the
    file object, meaning that TarFile.addfile(TarFile.gettarinfo()) doesn't
    pass the test suite. Instead, this uses an open() within a try...except
    block to include a file object for each file without passing a file
    object when the path is a directory.
    Signed-off-by: 's avatarChristian Bundy <christianbundy@fraction.io>
    a718ab69
utils.py 35.5 KB