Skip to content

Commit

Permalink
Fix Repository.get_attr(..) doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Nov 20, 2021
1 parent a29fc3a commit a70d36f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pygit2/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,12 +1288,12 @@ def get_attr(self, path, name, flags=0):
Examples::
>>> print(repo.get_attr('splash.bmp', 'binary'))
True
>>> print(repo.get_attr('splash.bmp', 'unknown-attr'))
None
>>> repo.get_attr('test.h', 'whitespace')
'tab-in-indent,trailing-space'
>>> print(repo.get_attr('splash.bmp', 'binary'))
True
>>> print(repo.get_attr('splash.bmp', 'unknown-attr'))
None
>>> repo.get_attr('test.h', 'whitespace')
'tab-in-indent,trailing-space'
"""

cvalue = ffi.new('char **')
Expand Down

0 comments on commit a70d36f

Please sign in to comment.