diff options
author | hut <hut@lavabit.com> | 2010-03-11 23:42:08 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-12 00:46:48 +0100 |
commit | fff320285cfd4844547afac4056b788b2db3a2ee (patch) | |
tree | 1b63955cb80df95b06f59bd3b11b37d811a7953b /ranger | |
parent | 35327385adec3c4400a12a488f638f20643033e2 (diff) | |
download | ranger-fff320285cfd4844547afac4056b788b2db3a2ee.tar.gz |
ranger.data.generate: added compatibility to python 2.6
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/data/generate.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/data/generate.py b/ranger/data/generate.py index a0ed2b9b..195f3559 100755 --- a/ranger/data/generate.py +++ b/ranger/data/generate.py @@ -24,7 +24,9 @@ if __name__ == '__main__': 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 or ' ' in line): - name, *extensions = line.split() + arr = line.split() + name = arr[0] + extensions = arr[1:] for ext in extensions: table[ext] = name |