From bf36701d3b2cef579d89eb912aa3945de7a7f978 Mon Sep 17 00:00:00 2001 From: nfnty Date: Sat, 7 Jan 2017 02:45:05 +0100 Subject: config/commands.py: scout: Do not use `re.LOCALE` Very unreliable and Python 3.6 only supports the flag for bytes patterns Fixes #664 Fixes #752 --- ranger/config/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 18efbfc1..a384f427 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1251,7 +1251,7 @@ class scout(Command): regex = "^(?:(?!%s).)*$" % regex # Compile Regular Expression - options = re.LOCALE | re.UNICODE + options = re.UNICODE if self.IGNORE_CASE in flags or self.SMART_CASE in flags and \ pattern.islower(): options |= re.IGNORECASE -- cgit 1.4.1-2-gfad0