Docstring cleanup

This commit is contained in:
Lars Kiesow 2013-12-01 19:42:55 +01:00
parent ec4aa780c2
commit e34d9c5693

View file

@ -16,12 +16,12 @@ def ensure_format(val, allowed, required, allowed_values=None, defaults=None):
the set of allowed keys, if all required keys are present and if the values the set of allowed keys, if all required keys are present and if the values
of a specific key are ok. of a specific key are ok.
:param val: Dictionaries to check. :param val: Dictionaries to check.
:param allowed: Set of allowed keys. :param allowed: Set of allowed keys.
:param required: Set of required keys. :param required: Set of required keys.
:param allowed_values: Dictionary with keys and sets of their allowed values. :param allowed_values: Dictionary with keys and sets of their allowed values.
:returns: List of checked dictionaries. :param defaults: Dictionary with default values.
:param defaults: Dictionary with default values. :returns: List of checked dictionaries.
''' '''
if not val: if not val:
return None return None