Update src/escpos/printer/cups.py

f-string

Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
This commit is contained in:
Benito López 2023-09-01 23:07:27 +02:00 committed by GitHub
parent d68eee08a7
commit 21b329a955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,5 +180,5 @@ class CupsPrinter(Escpos):
return
if self.pending_job:
self.send()
print("Closing CUPS connection to printer {}".format(self.printer_name))
print(f"Closing CUPS connection to printer {self.printer_name}")
self.device = None