refactor the blob example

This commit is contained in:
Valentin Haenel 2013-02-28 21:10:23 +01:00
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
>>> oid = repo.create_blob('foo bar')
>>> blob = repo[oid]
Blob.data -- the contents of the blob, a byte string
>>> blob.data
'foo bar'
>>> oid
'\x96\xc9\x06um{\x91\xc4S"a|\x92\x95\xe4\xa8\rR\xd1\xc5'
.. autoclass:: pygit2.Blob
:members: