1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-05 19:40:52 -07:00

Doing better isinstanceof check

This commit is contained in:
John Donaldson 2018-07-13 15:51:49 -07:00
parent 97c2051b27
commit 4379567669

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: