1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +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
"""
self.device.send(msg)
self.device.sendall(msg)
def __del__(self):
""" Close TCP connection """