Return translator_class for older sphinx versions.

remotes/origin/freebsd-improvements
Darko Poljak 7 years ago
parent 26a8827ec2
commit d4a7b298a6
  1. 2
      cdist/sphinxext/manpage.py

@ -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):

Loading…
Cancel
Save