From 70a8392466fa5426c1a7c5cc7fab053f8f5afe97 Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Wed, 25 Jan 2017 13:35:47 -0700 Subject: [PATCH] TS-5107: init_customizations() isn't new in Docutils 0.13 We can use it in 0.12 and 0.13. --- doc/conf.py | 46 +++++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 7a1ae44b8ea..ad7c8bc32f5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -182,35 +182,23 @@ # states.Inliner isn't a new-style class, so super() isn't an option. BaseInliner = states.Inliner class Inliner(states.Inliner): - if hasattr(states.Inliner, 'init_customizations'): - def init_customizations(self, settings): - self.__class__ = BaseInliner - BaseInliner.init_customizations(self, settings) - self.__class__ = Inliner - - # Copied from states.Inliner.init_customizations(). - # In Docutils 0.13 these are locals. - if settings.character_level_inline_markup: - self.start_string_prefix = u'(^|(?