diff options
-rw-r--r-- | ranger/ext/shell_escape.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/shell_escape.py b/ranger/ext/shell_escape.py index a652fab1..05bff1df 100644 --- a/ranger/ext/shell_escape.py +++ b/ranger/ext/shell_escape.py @@ -9,6 +9,8 @@ from __future__ import (absolute_import, division, print_function) META_CHARS = (' ', "'", '"', '`', '&', '|', ';', '#', '$', '!', '(', ')', '[', ']', '<', '>', '\t') UNESCAPABLE = set(map(chr, list(range(9)) + list(range(10, 32)) + list(range(127, 256)))) +# pylint: disable=consider-using-dict-comprehension +# COMPAT Dictionary comprehensions didn't exist before 2.7 META_DICT = dict([(mc, '\\' + mc) for mc in META_CHARS]) |