From 56cf4394ad750346c6b664821ccd7489ec140dae Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Tue, 4 Feb 2020 16:24:25 +0100 Subject: [PATCH] [fix] "response doesn't start with the usual header" fixes #25, fixes #69, fixes #75, fixes #81 also seen in issues: #56, #71 --- brother_ql/backends/generic.py | 2 ++ brother_ql/backends/pyusb.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/brother_ql/backends/generic.py b/brother_ql/backends/generic.py index b638e8a..bfcd4d4 100644 --- a/brother_ql/backends/generic.py +++ b/brother_ql/backends/generic.py @@ -1,4 +1,6 @@ +from builtins import bytes + import logging logger = logging.getLogger(__name__) diff --git a/brother_ql/backends/pyusb.py b/brother_ql/backends/pyusb.py index 3217b75..bce5f88 100755 --- a/brother_ql/backends/pyusb.py +++ b/brother_ql/backends/pyusb.py @@ -9,7 +9,7 @@ """ from __future__ import unicode_literals -from builtins import str +from builtins import str, bytes import time