forked from ungleich-public/cdist
Return translator_class for older sphinx versions.
This commit is contained in:
parent
26a8827ec2
commit
d4a7b298a6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue