Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Schueller <schueller@phimeca.com>2022-10-05 15:36:24 +0300
committerGitHub <noreply@github.com>2022-10-05 15:36:24 +0300
commitad5e17beb304e1ddc67accd22c5d1115eb28e9d3 (patch)
treedb0caaec6b97008f5417d521d4de35ede24bc429
parent3e29abf8de3f6f29aff18859b5eb88c8c79a1cbc (diff)
Fix `cleanup_tempdir` in imgmath (#10895)
-rw-r--r--sphinx/ext/imgmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py
index ddef58187..a7f1fc928 100644
--- a/sphinx/ext/imgmath.py
+++ b/sphinx/ext/imgmath.py
@@ -285,7 +285,7 @@ def cleanup_tempdir(app: Sphinx, exc: Exception) -> None:
if not hasattr(app.builder, '_imgmath_tempdir'):
return
try:
- shutil.rmtree(app.builder._mathpng_tempdir) # type: ignore
+ shutil.rmtree(app.builder._imgmath_tempdir) # type: ignore
except Exception:
pass