From 5aa2eb787cc04816350e7bd72622ef70bd7431e1 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Fri, 13 Jul 2018 15:51:49 -0700 Subject: [PATCH] Doing better isinstanceof check --- tools/mothballer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mothballer.py b/tools/mothballer.py index 894fc94..5b368ab 100755 --- a/tools/mothballer.py +++ b/tools/mothballer.py @@ -24,7 +24,7 @@ def write_kv_pairs(ziphandle, filename, kv): """ filehandle = io.StringIO() for key in sorted(kv.keys()): - if isinstance(kv[key], type([])): + if isinstance(kv[key], list): for val in kv[key]: filehandle.write("%s %s\n" % (key, val)) else: