From 43795676694a121b97ed5119c24b11b7817bd744 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: