diff --git a/src/common/config.py b/src/common/config.py index 23b997d47..3457992b5 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -19,7 +19,7 @@ ## -import sre +import re import copy import defs @@ -441,7 +441,7 @@ class Config: elif type[0] == 'string': return self.is_valid_string(val) else: - if sre.match(type[1], val): + if re.match(type[1], val): return val else: return None diff --git a/src/common/helpers.py b/src/common/helpers.py index 5dc224ff2..7961cdfb3 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -16,7 +16,7 @@ ## GNU General Public License for more details. ## -import sre +import re import locale import os import subprocess @@ -328,7 +328,7 @@ def from_one_line(msg): # to match the regexp that follows it # So here match '\\n' but not if you have a '\' before that - re = sre.compile(r'(?