Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit 9ba2234

Browse files
committed
Use stdlib logging to work around old sphinx versions
1 parent a4087aa commit 9ba2234

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
From: Anthony Sottile <asottile@umich.edu>
2+
Date: Mon, 24 Dec 2018 12:01:18 -0800
3+
Subject: fix logging for old sphinx
4+
5+
---
6+
Doc/tools/extensions/escape4chm.py | 2 +-
7+
1 file changed, 1 insertion(+), 1 deletion(-)
8+
9+
diff --git a/Doc/tools/extensions/escape4chm.py b/Doc/tools/extensions/escape4chm.py
10+
index e999971..7b3948e 100644
11+
--- a/Doc/tools/extensions/escape4chm.py
12+
+++ b/Doc/tools/extensions/escape4chm.py
13+
@@ -8,7 +8,7 @@ https://bugs.python.org/issue32174
14+
import re
15+
from html.entities import codepoint2name
16+
17+
-from sphinx.util.logging import getLogger
18+
+from logging import getLogger
19+
20+
# escape the characters which codepoint > 0x7F
21+
def _process(string):

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ reproducible-buildinfo.diff
2828
pydoc-use-pager.diff
2929
disable-dbm-ndbm-tests.patch
3030
0030-Work-with-older-sphinx.patch
31+
0031-fix-logging-for-old-sphinx.patch

0 commit comments

Comments
 (0)