From 80b320c9ae8503c388d5d05a9a09d7cb39a30a07 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 1 Aug 2018 00:35:44 +0900 Subject: [PATCH] latex: Reorder deprected method --- sphinx/writers/latex.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index a2b240f06..17778107a 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -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]]