mirror of https://github.com/dirtbags/moth.git
Doing better isinstanceof check
This commit is contained in:
parent
e675d8e79a
commit
5aa2eb787c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue