diff options
author | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-07-16 17:37:01 +0000 |
---|---|---|
committer | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-07-16 17:37:01 +0000 |
commit | 8c8e213b3082a938a8b184461c402abd5289a341 (patch) | |
tree | ffb168c441e53cd323c8896356b88d634ff30f97 /sandbox/py-rest-doc/sphinx/environment.py | |
parent | 88588ed82154aba666336036f6a22d366cedaa8b (diff) | |
download | docutils-8c8e213b3082a938a8b184461c402abd5289a341.tar.gz |
- Add Jinja as an external.
- Fix a reading bug.
- Use .hasattr() instead of .has_key() for nodes.
- Remove unused code in the modindex handler.
- Always render comment form.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5373 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/environment.py')
-rw-r--r-- | sandbox/py-rest-doc/sphinx/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/py-rest-doc/sphinx/environment.py b/sandbox/py-rest-doc/sphinx/environment.py index 540f3ec44..1a9941a95 100644 --- a/sandbox/py-rest-doc/sphinx/environment.py +++ b/sandbox/py-rest-doc/sphinx/environment.py @@ -550,7 +550,7 @@ class BuildEnvironment: # set the target paths in the toctrees (they are not known # at TOC generation time) for node in doctree.traverse(nodes.reference): - if node.has_key('anchorname'): + if node.hasattr('anchorname'): # a TOC reference node['refuri'] = builder.get_relative_uri( filename, node['refuri']) + node['anchorname'] |