diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-11 12:55:22 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-11 13:07:12 -0800 |
commit | 710ca3d7c3a41296861b0be79b9904246477968d (patch) | |
tree | 6cd7739bf90ec0fca6c0d0b42e7e324f431af82b /sphinx/transforms/post_transforms/code.py | |
parent | 42d52d6a919fafdcd07ebea4fd983bf3055314fa (diff) | |
download | sphinx-git-710ca3d7c3a41296861b0be79b9904246477968d.tar.gz |
Use super() to call parent class's method
Diffstat (limited to 'sphinx/transforms/post_transforms/code.py')
-rw-r--r-- | sphinx/transforms/post_transforms/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/transforms/post_transforms/code.py b/sphinx/transforms/post_transforms/code.py index 86143ffb4..3e7cbcb1a 100644 --- a/sphinx/transforms/post_transforms/code.py +++ b/sphinx/transforms/post_transforms/code.py @@ -54,7 +54,7 @@ class HighlightLanguageVisitor(nodes.NodeVisitor): # type: (nodes.document, unicode) -> None self.default_setting = HighlightSetting(default_language, sys.maxsize) self.settings = [] # type: List[HighlightSetting] - nodes.NodeVisitor.__init__(self, document) + super(HighlightLanguageVisitor, self).__init__(document) def unknown_visit(self, node): # type: (nodes.Node) -> None |