Skip to content

Commit f063186

Browse files
committed
Merge remote-tracking branch 'djmattyg007/doc_updates'
2 parents 6c4e1d0 + d752e85 commit f063186

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

docs/conf.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys, os
14+
import sys, os, platform
15+
from string import digits
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,
1718
# add these directories to sys.path here. If the directory is relative to the
1819
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
sys.path.insert(0, os.path.abspath('../build/lib.linux-x86_64-2.7'))
20+
version_string = sys.platform.rstrip(digits) + "-" + os.uname()[4] + "-" + ".".join(platform.python_version_tuple()[0:2])
21+
sys.path.insert(0, os.path.abspath('../build/lib.' + version_string))
2022

2123
# -- General configuration -----------------------------------------------------
2224

pygit2/credentials.py

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ class Keypair(object):
6161
This is an object suitable for passing to a remote's credentials
6262
callback and for returning from said callback.
6363
64+
:param str username: the username being used to authenticate with the
65+
remote server
66+
:param str pubkey: the path to the user's public key file
67+
:param str privkey: the path to the user's private key file
68+
:param str passphrase: the password used to decrypt the private key file
69+
6470
"""
6571

6672
def __init__(self, username, pubkey, privkey, passphrase):

pygit2/remote.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TransferProgress(object):
4949
def __init__(self, tp):
5050

5151
self.total_objects = tp.total_objects
52-
"""Total number objects to download"""
52+
"""Total number of objects to download"""
5353

5454
self.indexed_objects = tp.indexed_objects
5555
"""Objects which have been indexed"""
@@ -291,7 +291,7 @@ def _push_cb(ref, msg, data):
291291
def push(self, spec, signature=None, message=None):
292292
"""push(refspec, signature, message)
293293
294-
Push the given refspec to the remote. Raises ``GitError`` on error
294+
Push the given refspec to the remote. Raises ``GitError`` on error.
295295
296296
:param str spec: push refspec to use
297297
:param Signature signature: signature to use when updating the tips

0 commit comments

Comments
 (0)