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:

committed by
Patrick Kanzler

parent
020ba4145c
commit
9159aafd18
@@ -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 """
|
||||||
|
Reference in New Issue
Block a user