File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ The Oid type
56
56
>>> raw = unhexlify("cff3ceaefc955f0dbe1957017db181bc49913781")
57
57
>>> oid2 = Oid(raw=raw)
58
58
59
- And the other way around, from an Oid object we can get the hexadecimal and raw
60
- forms. You can use the built-in `str() ` (or ` unicode() ` in python 2) to get the
61
- hexadecimal representation of the Oid.
59
+ And the other way around, from an Oid object we can get the raw form via
60
+ ` oid.raw `. You can use `str(oid ) ` to get the hexadecimal representation of the
61
+ Oid.
62
62
63
63
.. method :: Oid.__str__()
64
64
.. autoattribute :: pygit2.Oid.raw
@@ -72,6 +72,7 @@ The Oid type supports:
72
72
73
73
- `bool(oid) `, returning False if the Oid is a null SHA-1 (all zeros).
74
74
75
+ - `str(oid) `, returning the hexadecimal representation of the Oid.
75
76
76
77
Constants
77
78
=========
You can’t perform that action at this time.
0 commit comments