From af98b9e14f8cd67bcf7894befa14fc6892898a70 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 7 Mar 2021 00:38:39 +0900 Subject: [PATCH] Fix wrong directive name in warning messages --- sphinx/directives/patches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py index 5baa0994c..3cfad5a3f 100644 --- a/sphinx/directives/patches.py +++ b/sphinx/directives/patches.py @@ -92,7 +92,7 @@ class CSVTable(tables.CSVTable): Only for docutils-0.13 or older version.""" def run(self) -> List[Node]: - warnings.warn('RSTTable is deprecated.', + warnings.warn('CSVTable is deprecated.', RemovedInSphinx60Warning) return super().run() @@ -110,7 +110,7 @@ class ListTable(tables.ListTable): Only for docutils-0.13 or older version.""" def run(self) -> List[Node]: - warnings.warn('RSTTable is deprecated.', + warnings.warn('ListTable is deprecated.', RemovedInSphinx60Warning) return super().run()