diff options
author | nfnty <git@nfnty.se> | 2017-01-07 02:45:05 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2017-01-08 00:03:18 +0100 |
commit | bf36701d3b2cef579d89eb912aa3945de7a7f978 (patch) | |
tree | 45b1dcdb789ce0148445763cf47d03e22f776a36 /ranger | |
parent | 3c65273e144300062b7eed5797641a9e6afc4229 (diff) | |
download | ranger-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
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/config/commands.py | 2 |
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 |