summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-07 02:45:05 +0100
committerhut <hut@lepus.uberspace.de>2017-01-08 00:03:18 +0100
commitbf36701d3b2cef579d89eb912aa3945de7a7f978 (patch)
tree45b1dcdb789ce0148445763cf47d03e22f776a36
parent3c65273e144300062b7eed5797641a9e6afc4229 (diff)
downloadranger-bf36701d3b2cef579d89eb912aa3945de7a7f978.tar.gz
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
-rwxr-xr-xranger/config/commands.py2
1 files changed, 1 insertions, 1 deletions
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