Browse Source

Return translator_class for older sphinx versions.

freebsd-improvements
Darko Poljak 4 years ago
parent
commit
d4a7b298a6
  1. 2
      cdist/sphinxext/manpage.py

2
cdist/sphinxext/manpage.py vendored

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