wrong order of the args in docstring of write_archive

This commit is contained in:
Yu Jianjian
2016-03-23 23:33:20 +08:00
parent f2864c0511
commit 51915ddf0e

View File

@@ -765,7 +765,7 @@ class Repository(_Repository):
>>> import tarfile, pygit2
>>>> with tarfile.open('foo.tar', 'w') as archive:
>>>> repo = pygit2.Repsitory('.')
>>>> repo.write_archive(archive, repo.head.target)
>>>> repo.write_archive(repo.head.target, archive)
"""
# Try to get a tree form whatever we got