refactor the blob example
This commit is contained in:
parent
ce5b884bbe
commit
d937da9c8a
@ -146,9 +146,10 @@ A blob is equivalent to a file in a file system.::
|
|||||||
>>> # create a blob out of memory
|
>>> # create a blob out of memory
|
||||||
>>> oid = repo.create_blob('foo bar')
|
>>> oid = repo.create_blob('foo bar')
|
||||||
>>> blob = repo[oid]
|
>>> blob = repo[oid]
|
||||||
|
>>> blob.data
|
||||||
Blob.data -- the contents of the blob, a byte string
|
'foo bar'
|
||||||
|
>>> oid
|
||||||
|
'\x96\xc9\x06um{\x91\xc4S"a|\x92\x95\xe4\xa8\rR\xd1\xc5'
|
||||||
|
|
||||||
.. autoclass:: pygit2.Blob
|
.. autoclass:: pygit2.Blob
|
||||||
:members:
|
:members:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user