From 49db7406a59ce815396cb1b54667c2efca233bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sat, 16 May 2020 16:46:53 +0100 Subject: Remove f-string prefix from strings with no placeholders. --- glucometerutils/drivers/fsoptium.py | 2 +- reversing_tools/abbott/extract_freestyle.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glucometerutils/drivers/fsoptium.py b/glucometerutils/drivers/fsoptium.py index 38e3a8e..e1054c1 100644 --- a/glucometerutils/drivers/fsoptium.py +++ b/glucometerutils/drivers/fsoptium.py @@ -91,7 +91,7 @@ class Device(serial.SerialDevice, driver.GlucometerDevice): DEFAULT_CABLE_ID = "1a61:3420" def _send_command(self, command: str) -> Sequence[str]: - cmd_bytes = bytes(f"$%s\r\n" % command, "ascii") + cmd_bytes = bytes("$%s\r\n" % command, "ascii") logging.debug("Sending command: %r", cmd_bytes) self.serial_.write(cmd_bytes) diff --git a/reversing_tools/abbott/extract_freestyle.py b/reversing_tools/abbott/extract_freestyle.py index 0089245..99a15f9 100755 --- a/reversing_tools/abbott/extract_freestyle.py +++ b/reversing_tools/abbott/extract_freestyle.py @@ -119,7 +119,7 @@ def main(): descriptor = session.device_descriptors.get(args.device_address, None) if not descriptor: logging.warning( - f"Unable to find device %s in the capture's descriptors." + "Unable to find device %s in the capture's descriptors." " Assuming non-encrypted protocol.", args.device_address, ) -- cgit v1.2.3