From 4831137d359e0abc8c16d152a0c13340c2eed79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 29 Mar 2020 17:34:01 +0100 Subject: Rename driver.GlucometerDriver to driver.GlucometerDevice. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "driver" is the module — the classes need to be called Device. This allows adding further typing around this. --- glucometerutils/support/contourusb.py | 2 +- glucometerutils/support/freestyle.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'glucometerutils/support') diff --git a/glucometerutils/support/contourusb.py b/glucometerutils/support/contourusb.py index e27347e..cf78d69 100644 --- a/glucometerutils/support/contourusb.py +++ b/glucometerutils/support/contourusb.py @@ -71,7 +71,7 @@ class Mode(enum.Enum): COMMAND = enum.auto() -class ContourHidDevice(driver.GlucometerDriver): +class ContourHidDevice(driver.GlucometerDevice): """Base class implementing the ContourUSB HID common protocol. """ diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index 9cdbff9..40482b0 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -286,7 +286,7 @@ class FreeStyleHidSession: return csv.reader(records_str.split("\r\n")) -class FreeStyleHidDevice(driver.GlucometerDriver): +class FreeStyleHidDevice(driver.GlucometerDevice): """Base class implementing the FreeStyle HID common protocol. This class implements opening, initializing the connection and sending -- cgit v1.2.3