mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
enable flake8-docstrings
This commit is contained in:
@@ -423,7 +423,7 @@ if _WIN32PRINT:
|
||||
self.hPrinter = None
|
||||
|
||||
def _raw(self, msg):
|
||||
"""Print any command sent in raw format
|
||||
"""Print any command sent in raw format.
|
||||
|
||||
:param msg: arbitrary code to be printed
|
||||
:type msg: bytes
|
||||
@@ -583,7 +583,7 @@ if not sys.platform.startswith("win"):
|
||||
self.lp.terminate()
|
||||
|
||||
def flush(self):
|
||||
"""End line and wait for new commands"""
|
||||
"""End line and wait for new commands."""
|
||||
if self.lp.stdin.writable():
|
||||
self.lp.stdin.write(b"\n")
|
||||
if self.lp.stdin.closed is False:
|
||||
|
Reference in New Issue
Block a user