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/common.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 'glucometerutils/common.py')
-rw-r--r-- | glucometerutils/common.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py index 6576ebd..50f04e7 100644 --- a/glucometerutils/common.py +++ b/glucometerutils/common.py @@ -154,23 +154,16 @@ class MeterInfo: version_information_string = "\n ".join(self.version_info).strip() base_output = textwrap.dedent( - """\ - {model} - Serial Number: {serial_number} + f"""\ + {self.model} + Serial Number: {self.serial_number} Version Information: {version_information_string} - Native Unit: {native_unit} + Native Unit: {self.native_unit.value} """ - ).format( - model=self.model, - serial_number=self.serial_number, - version_information_string=version_information_string, - native_unit=self.native_unit.value, ) if self.patient_name != None: - base_output += "Patient Name: {patient_name}\n".format( - patient_name=self.patient_name - ) + base_output += f"Patient Name: {self.patient_name}\n" return base_output |