From f8a2174108c4d2030922f5b7c6d7385518ad7e08 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 27 Jul 2017 23:06:59 +0200 Subject: [PATCH] fix typo --- src/escpos/escpos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index f13948b..6d5cf5c 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -251,9 +251,9 @@ class Escpos(object): """ max_input = (256 << (out_bytes * 8) - 1) if not 1 <= out_bytes <= 4: - raise ValueError("Can only output 1-4 byes") + raise ValueError("Can only output 1-4 bytes") if not 0 <= inp_number <= max_input: - raise ValueError("Number too large. Can only output up to {0} in {1} byes".format(max_input, out_bytes)) + raise ValueError("Number too large. Can only output up to {0} in {1} bytes".format(max_input, out_bytes)) outp = b'' for _ in range(0, out_bytes): outp += six.int2byte(inp_number % 256)