mirror of https://github.com/dirtbags/moth.git
Doing better isinstanceof check
This commit is contained in:
parent
97c2051b27
commit
4379567669
|
@ -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