Doing better isinstanceof check

This commit is contained in:
John Donaldson 2018-07-13 15:51:49 -07:00
parent e675d8e79a
commit 5aa2eb787c
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()
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: