Removed dump_pickle tool, because pickles don't have an obvious extension.

This commit is contained in:
Andrew Hamilton 2016-02-10 16:05:06 +00:00
parent 87b518a9e2
commit 5dc0aaaf5d

View file

@ -14,7 +14,6 @@ import math
import os import os
import os.path import os.path
import pickle import pickle
import pprint
import pwd import pwd
import stat import stat
import subprocess import subprocess
@ -477,13 +476,6 @@ def mp3info(path):
mp3info.dependencies = ["mp3info"] mp3info.dependencies = ["mp3info"]
def dump_pickle(path):
with open(path, "rb") as file_:
object_ = pickle.load(file_)
return Status.normal, fill3.Text(pprint.pformat(object_.__dict__))
dump_pickle.dependencies = set()
def unzip(path): def unzip(path):
return _run_command(["unzip", "-l", path], Status.normal) return _run_command(["unzip", "-l", path], Status.normal)
unzip.dependencies = {"unzip"} unzip.dependencies = {"unzip"}
@ -590,7 +582,6 @@ def tools_for_extension():
"h": [splint, uncrustify], "h": [splint, uncrustify],
"o": [objdump_headers, objdump_disassemble, readelf], "o": [objdump_headers, objdump_disassemble, readelf],
"mp3": [mp3info], "mp3": [mp3info],
"pickle": [dump_pickle],
"zip": [unzip], "zip": [unzip],
"tar.gz": [tar_gz], "tar.gz": [tar_gz],
"tgz": [tar_gz], "tgz": [tar_gz],