fix error on doc about attrify

This commit is contained in:
Prodesire 2017-10-25 22:16:37 +08:00
parent 7fa24f36a2
commit 00a61b1253
1 changed files with 2 additions and 2 deletions

View File

@ -108,11 +108,11 @@ Utils
Dict Dict
---- ----
.. function:: pydu.utils.attrify(obj) .. function:: pydu.utils.dict.attrify(obj)
Attrify obj into `AttriDict` or list or `AttriDict` if the obj is list. Attrify obj into `AttriDict` or list or `AttriDict` if the obj is list.
>>> from pydu.utils import attrify >>> from pydu.utils.dict import attrify
>>> attrd = attrify({ >>> attrd = attrify({
'a': [1, 2, {'b': 'b'}], 'a': [1, 2, {'b': 'b'}],
'c': 'c', 'c': 'c',