From 6b445b3fb1f5ec375890bf9037a3a3593218f33b Mon Sep 17 00:00:00 2001 From: Michael Billington Date: Wed, 6 Apr 2016 21:05:32 +1000 Subject: [PATCH] update docstrings per QuantifiedCode suggestions --- escpos/image.py | 10 +++++++--- escpos/printer.py | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/escpos/image.py b/escpos/image.py index af150ba..8dd46d4 100644 --- a/escpos/image.py +++ b/escpos/image.py @@ -2,9 +2,6 @@ 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 `_ :organization: `python-escpos `_ :copyright: Copyright (c) 2016 Michael Billington @@ -14,6 +11,13 @@ PIL, rather than spend CPU cycles looping over pixels. from PIL import Image, ImageOps 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): """ Load in an image diff --git a/escpos/printer.py b/escpos/printer.py index 086f8ff..ee9e227 100644 --- a/escpos/printer.py +++ b/escpos/printer.py @@ -292,4 +292,5 @@ class Dummy(Escpos): @property def output(self): + """ Get the data that was sent to this printer """ return b''.join(self._output_list)