comparison doc/taglist.py @ 1223:621e03253f0c

mini-bug in taglist
author boulanni <nicolas_boulanger@hotmail.com>
date Wed, 22 Sep 2010 15:08:39 -0400
parents c0515c0dfef9
children
comparison
equal deleted inserted replaced
1222:9ce32a8252d2 1223:621e03253f0c
51 def autodoc_process_docstring(app, what, name, obj, options, lines): 51 def autodoc_process_docstring(app, what, name, obj, options, lines):
52 env = app.builder.env 52 env = app.builder.env
53 if not hasattr(env, 'tags_db'): 53 if not hasattr(env, 'tags_db'):
54 env.tags_db = defaultdict(set) 54 env.tags_db = defaultdict(set)
55 55
56 if what == 'function': 56 if what == 'function' and hasattr(obj, 'tags'):
57 for tag in obj.tags: 57 for tag in obj.tags:
58 env.tags_db[tag].add((env.docname, name)) 58 env.tags_db[tag].add((env.docname, name))
59 59
60 def setup(app_): 60 def setup(app_):
61 global app 61 global app