diff options
| author | Georg Brandl <georg@python.org> | 2009-09-08 12:07:49 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-09-08 12:07:49 +0200 |
| commit | 199270cefd8eaf9ab30116de43699ff59e311a1e (patch) | |
| tree | 0babf9cd4366f22d6e7530d8b7cbd0da57e52f46 | |
| parent | cdbbc2fa2ce46bdc2406423ea57b53437f126177 (diff) | |
| download | sphinx-199270cefd8eaf9ab30116de43699ff59e311a1e.tar.gz | |
Small beauty fixes.
| -rw-r--r-- | sphinx/domains/std.py | 3 | ||||
| -rw-r--r-- | sphinx/util/__init__.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/domains/std.py b/sphinx/domains/std.py index ef24d121..9614e6a6 100644 --- a/sphinx/domains/std.py +++ b/sphinx/domains/std.py @@ -346,8 +346,7 @@ class StandardDomain(Domain): return make_refnode(builder, fromdocname, docname, labelid, contnode) else: - docname, labelid = self.data['objects'].get((typ, target), - ('', '')) + docname, labelid = self.data['objects'].get((typ, target), ('', '')) if not docname: if typ == 'term': env.warn(fromdocname, 'term not in glossary: %s' % target, diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index 2b563018..78949253 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -23,6 +23,8 @@ import traceback from os import path import docutils +from docutils import nodes + import sphinx @@ -447,8 +449,6 @@ def split_explicit_title(text): return False, text, text -from docutils import nodes - def make_refnode(builder, fromdocname, todocname, targetid, child, title=None): """Shortcut to create a reference node.""" node = nodes.reference('', '') |
