Return translator_class for older sphinx versions.

This commit is contained in:
Darko Poljak 2018-03-15 13:49:22 +01:00
parent 26a8827ec2
commit d4a7b298a6

View file

@ -27,6 +27,8 @@ class ManualPageWriter(sphinx.writers.manpage.ManualPageWriter):
def __init__(self, builder):
super().__init__(builder)
self.translator_class = (
self.builder.translator_class or ManualPageTranslator)
class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder):