update docstrings per QuantifiedCode suggestions

This commit is contained in:
Michael Billington 2016-04-06 21:05:32 +10:00
parent ba03538c50
commit 6b445b3fb1
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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)