Skip to content

Commit f9dbdce

Browse files
author
git
committed
发送非字符串报文
1 parent 8bd64e3 commit f9dbdce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

litefs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,10 @@ def _finish(self, content):
661661
rw.write(content)
662662
else:
663663
for s in content:
664-
rw.write(s)
664+
if isinstance(basestring):
665+
rw.write(s)
666+
else:
667+
rw.write('%r' % s)
665668
try:
666669
rw.close()
667670
except:

0 commit comments

Comments
 (0)