Remove trailing whitespace
This commit is contained in:
parent
7db21d132a
commit
5e9c429083
@ -129,7 +129,7 @@ them to the Git object database:
|
||||
|
||||
There are also some functions to calculate the oid for a byte string without
|
||||
creating the blob object:
|
||||
|
||||
|
||||
.. autofunction:: pygit2.hash
|
||||
.. 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.
|
||||
|
||||
An Oid object is created from the hexadecimal form this way::
|
||||
|
||||
|
||||
>>> from pygit2 import Oid
|
||||
|
||||
|
||||
>>> hex = "cff3ceaefc955f0dbe1957017db181bc49913781"
|
||||
>>> oid1 = Oid(hex=hex)
|
||||
|
||||
|
||||
An Oid object is created from the raw form this way::
|
||||
|
||||
|
||||
>>> from binascii import unhexlify
|
||||
>>> from pygit2 import Oid
|
||||
|
||||
|
||||
>>> raw = unhexlify("cff3ceaefc955f0dbe1957017db181bc49913781")
|
||||
>>> oid2 = Oid(raw=raw)
|
||||
|
||||
|
@ -137,8 +137,8 @@ clone_repository(PyObject *self, PyObject *args) {
|
||||
const char *push_spec, *checkout_branch;
|
||||
int err;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "zzIzzzzz",
|
||||
&url, &path, &bare, &remote_name, &push_url,
|
||||
if (!PyArg_ParseTuple(args, "zzIzzzzz",
|
||||
&url, &path, &bare, &remote_name, &push_url,
|
||||
&fetch_spec, &push_spec, &checkout_branch))
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user