From 09408d03815353ae6cce5336f9e2ae0647a9c1fa Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 20 Apr 2017 17:31:53 -0700 Subject: [PATCH] [v9_9] python 3 compatibility 4591. [port] Addressed some python 3 compatibility issues. Thanks to Ville Skytta. [RT #44955] [RT #44956] (cherry picked from commit 6d19d975c6ce91ed3b2b13c2a3221bd6686f4128) (cherry picked from commit 17c7582ad84cc46744823cb2722ec481ac92bae0) --- CHANGES | 3 +++ bin/python/isc/coverage.py.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index be3ef9aa36..5e55af4eba 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] + 4589. [cleanup] "configure -q" is now silent. [RT #44829] 4588. [bug] nsupdate could send queries for TKEY to the wrong 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)