summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-05-10 15:09:37 (GMT)
committerMats Wichmann <mats@linux.com>2019-05-13 15:23:34 (GMT)
commit2845da6416d522cc6a15308b7787de65c22f200b (patch)
tree28ee4ad55d1d44d834c6214e802c48e75f94d9b1 /bin
parent8d800a37f1d0bdeae4fba560c0d66ab75129a570 (diff)
downloadSCons-2845da6416d522cc6a15308b7787de65c22f200b.zip
SCons-2845da6416d522cc6a15308b7787de65c22f200b.tar.gz
SCons-2845da6416d522cc6a15308b7787de65c22f200b.tar.bz2
Fix some regexes for Python 3.8 complaints
Regexes that contained unescaped backslashes and were not listed in raw string form caused one more test failure when Python 3.8 was experimentally turned on in the Travis CI build. Also one utility script had the same, not affecting tests - found through inspection. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/SConsDoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/SConsDoc.py b/bin/SConsDoc.py
index 962073e..5fd5f00 100644
--- a/bin/SConsDoc.py
+++ b/bin/SConsDoc.py
@@ -155,8 +155,8 @@ if not has_etree:
except ImportError:
raise ImportError("Failed to import ElementTree from any known place")
-re_entity = re.compile("\&([^;]+);")
-re_entity_header = re.compile("<!DOCTYPE\s+sconsdoc\s+[^\]]+\]>")
+re_entity = re.compile(r"\&([^;]+);")
+re_entity_header = re.compile(r"<!DOCTYPE\s+sconsdoc\s+[^\]]+\]>")
# Namespace for the SCons Docbook XSD
dbxsd="http://www.scons.org/dbxsd/v1.0"