Doing better isinstanceof check

This commit is contained in:
John Donaldson 2018-07-13 15:51:49 -07:00
parent 97c2051b27
commit 4379567669
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def write_kv_pairs(ziphandle, filename, kv):
""" """
filehandle = io.StringIO() filehandle = io.StringIO()
for key in sorted(kv.keys()): for key in sorted(kv.keys()):
if isinstance(kv[key], type([])): if isinstance(kv[key], list):
for val in kv[key]: for val in kv[key]:
filehandle.write("%s %s\n" % (key, val)) filehandle.write("%s %s\n" % (key, val))
else: else: