1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

IMPROVE use sendall instead of send in network-printer

This commit is contained in:
Davis Goglin
2014-03-14 09:05:47 -07:00
committed by Patrick Kanzler
parent 020ba4145c
commit 9159aafd18

View File

@@ -167,7 +167,7 @@ class Network(Escpos):
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
""" """
self.device.send(msg) self.device.sendall(msg)
def __del__(self): def __del__(self):
""" Close TCP connection """ """ Close TCP connection """