summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
 
:12:52 -0400 moved db test funcs to db_test.go' href='/gbmor/getwtxt/commit/db_test.go?h=v0.4.7&id=35e31f00e82762aec1d849d691f28b534214201d'>35e31f0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92