From 60f944adcfe4e8249e36a4d8d64772454b17e275 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 6 Apr 2016 23:18:09 +0100 Subject: [PATCH] Remove deprecated locale flag re.L is deprecated and re.U is now default. (cherry picked from commit da3db4bc2828210fa77d6d57bb28a7b0cc2c19e8) Fixes #10136 --- gramps/gen/filters/rules/_rule.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gramps/gen/filters/rules/_rule.py b/gramps/gen/filters/rules/_rule.py index bdf8f8a3a..25bdf0d85 100644 --- a/gramps/gen/filters/rules/_rule.py +++ b/gramps/gen/filters/rules/_rule.py @@ -82,9 +82,7 @@ class Rule(object): for i in range(len(self.labels)): if self.list[i]: try: - self.regex[i] = re.compile( - str(self.list[i]), - re.I|re.U|re.L) + self.regex[i] = re.compile(self.list[i], re.I) except re.error: self.regex[i] = re.compile('') self.match_substring = self.match_regex