Remove deprecated locale flag
re.L is deprecated and re.U is now default.
This commit is contained in:
parent
0dd79314b1
commit
da3db4bc28
@ -82,9 +82,7 @@ class Rule(object):
|
|||||||
for i in range(len(self.labels)):
|
for i in range(len(self.labels)):
|
||||||
if self.list[i]:
|
if self.list[i]:
|
||||||
try:
|
try:
|
||||||
self.regex[i] = re.compile(
|
self.regex[i] = re.compile(self.list[i], re.I)
|
||||||
str(self.list[i]),
|
|
||||||
re.I|re.U|re.L)
|
|
||||||
except re.error:
|
except re.error:
|
||||||
self.regex[i] = re.compile('')
|
self.regex[i] = re.compile('')
|
||||||
self.match_substring = self.match_regex
|
self.match_substring = self.match_regex
|
||||||
|
Loading…
Reference in New Issue
Block a user