update docstrings per QuantifiedCode suggestions
This commit is contained in:
parent
ba03538c50
commit
6b445b3fb1
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
This module contains the image format handler :py:class:`EscposImage`.
|
This module contains the image format handler :py:class:`EscposImage`.
|
||||||
|
|
||||||
The class is designed to efficiently delegate image processing to
|
|
||||||
PIL, rather than spend CPU cycles looping over pixels.
|
|
||||||
|
|
||||||
:author: `Michael Billington <michael.billington@gmail.com>`_
|
:author: `Michael Billington <michael.billington@gmail.com>`_
|
||||||
:organization: `python-escpos <https://github.com/python-escpos>`_
|
:organization: `python-escpos <https://github.com/python-escpos>`_
|
||||||
:copyright: Copyright (c) 2016 Michael Billington <michael.billington@gmail.com>
|
:copyright: Copyright (c) 2016 Michael Billington <michael.billington@gmail.com>
|
||||||
|
@ -14,6 +11,13 @@ PIL, rather than spend CPU cycles looping over pixels.
|
||||||
from PIL import Image, ImageOps
|
from PIL import Image, ImageOps
|
||||||
|
|
||||||
class EscposImage(object):
|
class EscposImage(object):
|
||||||
|
"""
|
||||||
|
Load images in, and output ESC/POS formats.
|
||||||
|
|
||||||
|
The class is designed to efficiently delegate image processing to
|
||||||
|
PIL, rather than spend CPU cycles looping over pixels.
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, img_source):
|
def __init__(self, img_source):
|
||||||
"""
|
"""
|
||||||
Load in an image
|
Load in an image
|
||||||
|
|
|
@ -292,4 +292,5 @@ class Dummy(Escpos):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def output(self):
|
def output(self):
|
||||||
|
""" Get the data that was sent to this printer """
|
||||||
return b''.join(self._output_list)
|
return b''.join(self._output_list)
|
||||||
|
|
Loading…
Reference in New Issue