Merge pull request #5244 from tk0miya/refactor_latex3

latex: Reorder deprected method
This commit is contained in:
Takeshi KOMIYA 2018-08-02 01:22:52 +09:00 committed by GitHub
commit 89ba9270be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -739,13 +739,6 @@ class LaTeXTranslator(nodes.NodeVisitor):
footnode.walkabout(self)
self.pending_footnotes = []
@property
def footnotestack(self):
# type: () -> List[Dict[unicode, List[Union[collected_footnote, bool]]]]
warnings.warn('LaTeXWriter.footnotestack is deprecated.',
RemovedInSphinx30Warning)
return []
def format_docclass(self, docclass):
# type: (unicode) -> unicode
""" prepends prefix to sphinx document classes
@ -2566,6 +2559,13 @@ class LaTeXTranslator(nodes.NodeVisitor):
# --------- METHODS FOR COMPATIBILITY --------------------------------------
@property
def footnotestack(self):
# type: () -> List[Dict[unicode, List[Union[collected_footnote, bool]]]]
warnings.warn('LaTeXWriter.footnotestack is deprecated.',
RemovedInSphinx30Warning)
return []
@property
def bibitems(self):
# type: () -> List[List[unicode]]