diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-14 19:13:55 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-14 19:13:55 +0100 |
commit | 9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94 (patch) | |
tree | ebb59348f88a455cdc06b87aa8da821637dc4e55 /glucometerutils/support/lifescan.py | |
parent | Expand line length in Emacs to match black. (diff) | |
download | glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.gz glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.bz2 glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.lz glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.xz glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.zst glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.zip |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/support/lifescan.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometerutils/support/lifescan.py b/glucometerutils/support/lifescan.py index 9340e49..1c329c6 100644 --- a/glucometerutils/support/lifescan.py +++ b/glucometerutils/support/lifescan.py @@ -11,7 +11,7 @@ class MissingChecksum(exceptions.InvalidResponse): def __init__(self, response): super(MissingChecksum, self).__init__( - "Response is missing checksum: %s" % response + f"Response is missing checksum: {response}" ) @@ -20,13 +20,13 @@ class InvalidSerialNumber(exceptions.Error): def __init__(self, serial_number): super(InvalidSerialNumber, self).__init__( - "Serial number %s is invalid." % serial_number + f"Serial number {serial_number} is invalid." ) class MalformedCommand(exceptions.InvalidResponse): def __init__(self, message): - super(MalformedCommand, self).__init__("Malformed command: %s" % message) + super(MalformedCommand, self).__init__(f"Malformed command: {message}") def crc_ccitt(data): |