Fix the installutils.set_directive docstring

Add missing parameter descriptions and fix incorrect indentation

https://fedorahosted.org/freeipa/ticket/6460

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
Martin Babinsky 2016-12-16 12:14:20 +01:00
parent 85834abad6
commit e1ed8b5eff

View File

@ -388,11 +388,14 @@ def set_directive(filename, directive, value, quotes=True, separator=' ',
This has only been tested with nss.conf
:param directive: directive name
:param value: value of the directive
:param quotes: whether to quote `value` in `quote_char`. If true, then
the `quote_char` are first escaped to avoid unparseable directives
:param quote_char: the character used for quoting `value`
:param filename: input filename
:param directive: directive name
:param value: value of the directive
:param quotes: whether to quote `value` in `quote_char`. If true, then
the `quote_char` are first escaped to avoid unparseable directives.
:param separator: character serving as separator between directive and
value
:param quote_char: the character used for quoting `value`
"""
def format_directive(directive, value, separator, quotes, quote_char):