diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-05-16 17:46:53 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-05-16 17:49:48 +0200 |
commit | 49db7406a59ce815396cb1b54667c2efca233bfb (patch) | |
tree | b5722d6c804555364e8aebf71c016d027c9befbe | |
parent | There's no need to install the pre-commit to run it. (diff) | |
download | glucometerutils-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 |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/drivers/fsoptium.py | 2 | ||||
-rwxr-xr-x | 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, ) |