Subject: | [PATCH] Python 3.6 invalid escape sequence deprecation fix |
Date: | Sun, 26 Mar 2017 00:28:00 +0200 |
To: | bind-bugs@isc.org |
From: | "Ville Skyttä" <ville.skytta@iki.fi> |
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
---
bin/python/isc/coverage.py.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/python/isc/coverage.py.in b/bin/python/isc/coverage.py.in
index 00eb9e0..9d06b9c 100644
--- a/bin/python/isc/coverage.py.in
+++ b/bin/python/isc/coverage.py.in
@@ -73,7 +73,7 @@ def parse_time(s):
pass
# try to parse as a number with a suffix indicating unit of time
- r = re.compile('([0-9][0-9]*)\s*([A-Za-z]*)')
+ r = re.compile(r'([0-9][0-9]*)\s*([A-Za-z]*)')
m = r.match(s)
if not m:
raise ValueError("Cannot parse %s" % s)
--
2.9.3