Cleanup docstrings in _util.py.
parent
82cdfaf45e
commit
04b9a13a51
|
@ -27,6 +27,7 @@ from time import mktime
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import encodings
|
import encodings
|
||||||
|
import exceptions
|
||||||
import os
|
import os
|
||||||
import psutil
|
import psutil
|
||||||
import threading
|
import threading
|
||||||
|
@ -252,7 +253,8 @@ def _find_binary(binary=None):
|
||||||
our process real uid has exec permissions.
|
our process real uid has exec permissions.
|
||||||
|
|
||||||
:param str binary: The path to the GnuPG binary.
|
:param str binary: The path to the GnuPG binary.
|
||||||
:raises: :exc:RuntimeError if it appears that GnuPG is not installed.
|
:raises: :exc:`~exceptions.RuntimeError` if it appears that GnuPG is not
|
||||||
|
installed.
|
||||||
:rtype: str
|
:rtype: str
|
||||||
:returns: The absolute path to the GnuPG binary to use, if no exceptions
|
:returns: The absolute path to the GnuPG binary to use, if no exceptions
|
||||||
occur.
|
occur.
|
||||||
|
@ -516,7 +518,7 @@ def _which(executable, flags=os.X_OK):
|
||||||
def _write_passphrase(stream, passphrase, encoding):
|
def _write_passphrase(stream, passphrase, encoding):
|
||||||
"""Write the passphrase from memory to the GnuPG process' stdin.
|
"""Write the passphrase from memory to the GnuPG process' stdin.
|
||||||
|
|
||||||
:type stream: file, :class:BytesIO, or :class:StringIO
|
:type stream: file, :class:`~io.BytesIO`, or :class:`~io.StringIO`
|
||||||
:param stream: The input file descriptor to write the password to.
|
:param stream: The input file descriptor to write the password to.
|
||||||
:param str passphrase: The passphrase for the secret key material.
|
:param str passphrase: The passphrase for the secret key material.
|
||||||
:param str encoding: The data encoding expected by GnuPG. Usually, this
|
:param str encoding: The data encoding expected by GnuPG. Usually, this
|
||||||
|
|
Loading…
Reference in New Issue