summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-05-16 17:46:53 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-05-16 17:49:48 +0200
commit49db7406a59ce815396cb1b54667c2efca233bfb (patch)
treeb5722d6c804555364e8aebf71c016d027c9befbe
parentThere's no need to install the pre-commit to run it. (diff)
downloadglucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.tar
glucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.tar.gz
glucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.tar.bz2
glucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.tar.lz
glucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.tar.xz
glucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.tar.zst
glucometerutils-49db7406a59ce815396cb1b54667c2efca233bfb.zip
-rw-r--r--glucometerutils/drivers/fsoptium.py2
-rwxr-xr-xreversing_tools/abbott/extract_freestyle.py2
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,
)