Show More
@@ -48,6 +48,7 b' import re' | |||
|
48 | 48 | |
|
49 | 49 | from docutils import nodes, writers, languages |
|
50 | 50 | import roman |
|
51 | import inspect | |
|
51 | 52 | |
|
52 | 53 | FIELD_LIST_INDENT = 7 |
|
53 | 54 | DEFINITION_LIST_INDENT = 7 |
@@ -160,7 +161,12 b' class Translator(nodes.NodeVisitor):' | |||
|
160 | 161 | nodes.NodeVisitor.__init__(self, document) |
|
161 | 162 | self.settings = settings = document.settings |
|
162 | 163 | lcode = settings.language_code |
|
163 |
|
|
|
164 | arglen = len(inspect.getargspec(languages.get_language)[0]) | |
|
165 | if arglen == 2: | |
|
166 | self.language = languages.get_language(lcode, | |
|
167 | self.document.reporter) | |
|
168 | else: | |
|
169 | self.language = languages.get_language(lcode) | |
|
164 | 170 | self.head = [] |
|
165 | 171 | self.body = [] |
|
166 | 172 | self.foot = [] |
General Comments 0
You need to be logged in to leave comments.
Login now