Inliner.init_customizations uses locals()

Eric Hellman <[email protected]> Wed, 11 Sep 2019 18:05:27 -0400
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
because Inliner.init_customizations uses locals(), it can't be used in a subclass. This breaks subclasses that override init_customizations because they can't call super(). but super.init_customizations must be called because otherwise patterns is not initialized.

For an example of how this problem required a workaround, see https://github.com/gutenbergtools/ebookmaker/pull/13 <https://github.com/gutenbergtools/ebookmaker/pull/13>


Eric Hellman
President, Free Ebook Foundation
Founder, Unglue.it https://unglue.it/
https://go-to-hellman.blogspot.com/
twitter: @gluejar