Skip to content

'TarFile' object has no attribute 'peel' #608

Closed
@akayj

Description

@akayj

When I try the sample code:

>> import tarfile, pygit2
>> with tarfile.open('foo.tar', 'w') as archive:
        repo = pygit2.Repsitory('.')
        repo.write_archive(archive, repo.head.target)

an exception raised:
'TarFile' object has no attribute 'peel'

indeed, tarfile didn't have the peel attr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions