summaryrefslogtreecommitdiff
path: root/sphinx/writers/xml.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-03-12 13:42:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-22 20:04:45 +0900
commit78ea36a787a762bb11dcddb00bf7510de43151c3 (patch)
tree0a68db8dd41ea6009f372b6117ed16f841ceb865 /sphinx/writers/xml.py
parentf346e7dc1d2a96060e41fa9927b9638d21a3e3b7 (diff)
downloadsphinx-git-78ea36a787a762bb11dcddb00bf7510de43151c3.tar.gz
Move translators to SphinxFactory
Diffstat (limited to 'sphinx/writers/xml.py')
-rw-r--r--sphinx/writers/xml.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/writers/xml.py b/sphinx/writers/xml.py
index 7d87e0bd6..9cb64216a 100644
--- a/sphinx/writers/xml.py
+++ b/sphinx/writers/xml.py
@@ -24,8 +24,7 @@ class XMLWriter(BaseXMLWriter):
# type: (Builder) -> None
BaseXMLWriter.__init__(self)
self.builder = builder
- if self.builder.translator_class:
- self.translator_class = self.builder.translator_class
+ self.translator_class = self.builder.get_translator_class()
def translate(self, *args, **kwargs):
# type: (Any, Any) -> None