summary refs log tree commit diff stats
path: root/data/generate.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-10 01:37:14 +0100
committerhut <hut@lavabit.com>2009-12-10 01:37:14 +0100
commit871c502d58055c7611f0763eaa71a7fafad7efdc (patch)
tree0f0080aac9f8bdbee5a7d6ca9bf6bb0d4866ffb7 /data/generate.py
parentaea67778ad2366b4e4171008af7b0dcd5d91f93b (diff)
downloadranger-871c502d58055c7611f0763eaa71a7fafad7efdc.tar.gz
Restructuration
Diffstat (limited to 'data/generate.py')
-rwxr-xr-xdata/generate.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/data/generate.py b/data/generate.py
deleted file mode 100755
index 61309259..00000000
--- a/data/generate.py
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/python3
-# coding=utf-8
-
-protocol = 0
-
-import sys, pickle
-
-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:
-		name, *extensions = line.split()
-		for ext in extensions:
-			table[ext] = name
-
-pickle.dump(table, open('mime.dat', 'wb'), protocol)
-