From 1a2273a5b31fbaba5f9978ee47ee6a47c174e5e2 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Wed, 16 Aug 2023 23:54:45 +0200 Subject: [PATCH] hide cups and WIn32Raw currently they are not always importable and that creates issues. The todo in __init__.py has to be resolved first --- src/escpos/printer/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/escpos/printer/__init__.py b/src/escpos/printer/__init__.py index 760352a..0d37832 100644 --- a/src/escpos/printer/__init__.py +++ b/src/escpos/printer/__init__.py @@ -2,7 +2,7 @@ """printer implementations.""" # from .win32raw import Win32Raw -from .cups import CupsPrinter +# from .cups import CupsPrinter from .dummy import Dummy from .file import File from .lp import LP @@ -17,7 +17,8 @@ __all__ = [ "Serial", "LP", "Dummy", - "CupsPrinter", + # "CupsPrinter", + # "Win32Raw", ] # TODO check which printers are importable and add only those to the namespace