mirror of
https://github.com/solero/houdini.git
synced 2024-11-12 13:48:20 +00:00
send_line accepts str instead of bytes
This commit is contained in:
parent
f26a225c4d
commit
8ac56dfbfd
@ -69,11 +69,11 @@ class Spheniscidae:
|
||||
sub_element_parent = sub_element_object
|
||||
|
||||
xml_data = tostring(data_root)
|
||||
await self.send_line(xml_data)
|
||||
await self.send_line(xml_data.decode('utf-8'))
|
||||
|
||||
async def send_line(self, data):
|
||||
self.logger.debug('Outgoing data: %s', data)
|
||||
self.__writer.write(data.encode() + Spheniscidae.Delimiter)
|
||||
self.__writer.write(data.encode('utf-8') + Spheniscidae.Delimiter)
|
||||
|
||||
async def close(self):
|
||||
self.__writer.close()
|
||||
|
Loading…
Reference in New Issue
Block a user