From 17c7582ad84cc46744823cb2722ec481ac92bae0 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 20 Apr 2017 17:31:25 -0700 Subject: [PATCH] [v9_10] python 3 compatibility 4591. [port] Addressed some python 3 compatibility issues. Thanks to Ville Skytta. [RT #44955] [RT #44956] (cherry picked from commit 6d19d975c6ce91ed3b2b13c2a3221bd6686f4128) --- CHANGES | 3 +++ bin/python/isc/coverage.py.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8c6370ed69..baeec24538 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +4591. [port] Addressed some python 3 compatibility issues. + Thanks to Ville Skytta. [RT #44955] [RT #44956] + 4590. [bug] Support for PTHREAD_MUTEX_ADAPTIVE_NP was not being properly detected. [RT #44871] diff --git a/bin/python/isc/coverage.py.in b/bin/python/isc/coverage.py.in index fe566275bc..809076c23d 100644 --- a/bin/python/isc/coverage.py.in +++ b/bin/python/isc/coverage.py.in @@ -81,7 +81,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)