Remove trailing whitespace
This commit is contained in:
@@ -129,7 +129,7 @@ them to the Git object database:
|
|||||||
|
|
||||||
There are also some functions to calculate the oid for a byte string without
|
There are also some functions to calculate the oid for a byte string without
|
||||||
creating the blob object:
|
creating the blob object:
|
||||||
|
|
||||||
.. autofunction:: pygit2.hash
|
.. autofunction:: pygit2.hash
|
||||||
.. autofunction:: pygit2.hashfile
|
.. autofunction:: pygit2.hashfile
|
||||||
|
|
||||||
|
10
docs/oid.rst
10
docs/oid.rst
@@ -47,17 +47,17 @@ The Oid type
|
|||||||
The constructor expects either a raw or a hex oid, but not both.
|
The constructor expects either a raw or a hex oid, but not both.
|
||||||
|
|
||||||
An Oid object is created from the hexadecimal form this way::
|
An Oid object is created from the hexadecimal form this way::
|
||||||
|
|
||||||
>>> from pygit2 import Oid
|
>>> from pygit2 import Oid
|
||||||
|
|
||||||
>>> hex = "cff3ceaefc955f0dbe1957017db181bc49913781"
|
>>> hex = "cff3ceaefc955f0dbe1957017db181bc49913781"
|
||||||
>>> oid1 = Oid(hex=hex)
|
>>> oid1 = Oid(hex=hex)
|
||||||
|
|
||||||
An Oid object is created from the raw form this way::
|
An Oid object is created from the raw form this way::
|
||||||
|
|
||||||
>>> from binascii import unhexlify
|
>>> from binascii import unhexlify
|
||||||
>>> from pygit2 import Oid
|
>>> from pygit2 import Oid
|
||||||
|
|
||||||
>>> raw = unhexlify("cff3ceaefc955f0dbe1957017db181bc49913781")
|
>>> raw = unhexlify("cff3ceaefc955f0dbe1957017db181bc49913781")
|
||||||
>>> oid2 = Oid(raw=raw)
|
>>> oid2 = Oid(raw=raw)
|
||||||
|
|
||||||
|
@@ -137,8 +137,8 @@ clone_repository(PyObject *self, PyObject *args) {
|
|||||||
const char *push_spec, *checkout_branch;
|
const char *push_spec, *checkout_branch;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "zzIzzzzz",
|
if (!PyArg_ParseTuple(args, "zzIzzzzz",
|
||||||
&url, &path, &bare, &remote_name, &push_url,
|
&url, &path, &bare, &remote_name, &push_url,
|
||||||
&fetch_spec, &push_spec, &checkout_branch))
|
&fetch_spec, &push_spec, &checkout_branch))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user