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

Fix docstring warnings from QuantifedCode.

This commit is contained in:
Michael Elsdörfer
2016-08-30 17:55:58 +02:00
parent 1bd53697b9
commit c850a726cb
3 changed files with 12 additions and 1 deletions

View File

@@ -12,6 +12,9 @@ ENCODINGS = CAPABILITIES['encodings']
class NotSupported(Exception):
"""Raised if a requested feature is not suppored by the
printer profile.
"""
pass
@@ -37,7 +40,7 @@ class BaseProfile(object):
font = {'a': 0, 'b': 1}.get(font, font)
if not six.text_type(font) in self.fonts:
raise NotSupported(
'"%s" is not a valid font in the current profile' % font)
'"{}" is not a valid font in the current profile'.format(font))
return font
def get_columns(self, font):