summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-17 19:33:23 +0100
committerGeorg Brandl <georg@python.org>2010-01-17 19:33:23 +0100
commit98bcd2fab4a82318ddd64efa66fff2ffdec353bf (patch)
treedeb311cb6a8c188e72e69193ef6bb0615a14cdf8 /sphinx/ext/autodoc.py
parent1bce0d7e6afa7afd0237df2ef75b823bb8e21e82 (diff)
downloadsphinx-git-98bcd2fab4a82318ddd64efa66fff2ffdec353bf.tar.gz
Make the _ gettext alias an explicit import instead of installing into builtins.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 720aee384..c08007cde 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -21,6 +21,7 @@ from docutils.utils import assemble_option_dict
from docutils.statemachine import ViewList
from sphinx.util import rpartition, force_decode
+from sphinx.locale import _
from sphinx.pycode import ModuleAnalyzer, PycodeError
from sphinx.application import ExtensionError
from sphinx.util.nodes import nested_parse_with_titles
@@ -868,7 +869,6 @@ class ClassDocumenter(ModuleLevelDocumenter):
return ret
def format_args(self):
- args = None
# for classes, the relevant signature is the __init__ method's
initmeth = self.get_attr(self.object, '__init__', None)
# classes without __init__ method, default __init__ or