From daf1e2838450f1b29165971ae9ee9f3062d7057c Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 11 Aug 2024 17:30:40 +0100 Subject: [PATCH] Remove ``sphinx.util._coding_re`` --- sphinx/util/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index 07169f20b9f..999c5ce4c11 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -142,10 +142,6 @@ def merge_other(self, docnames: set[str], other: dict[str, tuple[set[str], Any]] self.add_file(docname, filename) -# a regex to recognize coding cookies -_coding_re = re.compile(r'coding[:=]\s*([-\w.]+)') - - class UnicodeDecodeErrorHandler: """Custom error handler for open() that warns and replaces."""