Added documentation for the expand parameter

This commit is contained in:
Max Ammann 2016-06-13 14:38:51 +02:00
parent 041adf47ac
commit 619344c813

View file

@ -60,6 +60,8 @@ def json_generator(items, root, expand=False):
:param root: root key for JSON
:param items: list of :class:`Item` or :class:`Album` to dump
:param expand: If true every :class:`Album` contains its items in the json
representation
:returns: generator that yields strings
"""
yield '{"%s":[' % root