Skip to content

Commit ebeeaf3

Browse files
committed
PY2: ConfigParser for Sphinx build
1 parent 80b6174 commit ebeeaf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121

2222
import sys
2323
import os
24-
from configparser import ConfigParser
24+
try:
25+
from configparser import ConfigParser
26+
except ImportError:
27+
from ConfigParser import ConfigParser # PY2
2528

2629
# Check for external Sphinx extensions we depend on
2730
try:

0 commit comments

Comments
 (0)