1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

Merge pull request #127 from python-escpos/fix/abstractbaseclass-metaclass

FIX abstractbaseclass in Escpos not properly loaded
This commit is contained in:
Patrick Kanzler
2016-04-14 00:02:28 +02:00
2 changed files with 31 additions and 1 deletions

View File

@@ -23,13 +23,13 @@ from .exceptions import *
from abc import ABCMeta, abstractmethod # abstract base class support
from escpos.image import EscposImage
@six.add_metaclass(ABCMeta)
class Escpos(object):
""" ESC/POS Printer object
This class is the abstract base class for an esc/pos-printer. The printer implementations are children of this
class.
"""
__metaclass__ = ABCMeta
device = None
def __init__(self, columns=32):