summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-11 23:42:08 +0100
committerhut <hut@lavabit.com>2010-03-12 00:46:48 +0100
commitfff320285cfd4844547afac4056b788b2db3a2ee (patch)
tree1b63955cb80df95b06f59bd3b11b37d811a7953b
parent35327385adec3c4400a12a488f638f20643033e2 (diff)
downloadranger-fff320285cfd4844547afac4056b788b2db3a2ee.tar.gz
ranger.data.generate: added compatibility to python 2.6
-rwxr-xr-xranger/data/generate.py4
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