mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 03:00:00 -04:00
[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 6d19d975c6)
This commit is contained in:
parent
c39e634dfd
commit
17c7582ad8
2 changed files with 4 additions and 1 deletions
3
CHANGES
3
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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue