diff options
author | hut <hut@lavabit.com> | 2010-02-15 22:02:32 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-02-15 22:02:32 +0100 |
commit | 9c27c9626a44d19276a2e03ca907a4a159cd464f (patch) | |
tree | 64e30d0e1582ec1f767b38c65c880d177b904233 /ranger | |
parent | f6ae504ca793efddde036a4d486c81cbc03f3662 (diff) | |
download | ranger-9c27c9626a44d19276a2e03ca907a4a159cd464f.tar.gz |
data/generate.py: allow spaces as seperators in mimetypes
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/data/generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/generate.py b/ranger/data/generate.py index ce2c07c0..254ddb52 100755 --- a/ranger/data/generate.py +++ b/ranger/data/generate.py @@ -22,7 +22,7 @@ if __name__ == '__main__': table = {} for line in open(len(sys.argv) > 1 and sys.argv[1] or "mime.types"): - if len(line) > 3 and line[0] != '#' and '\t' in line: + if len(line) > 3 and line[0] != '#' and ('\t' in line or ' ' in line): name, *extensions = line.split() for ext in extensions: table[ext] = name |