Skip to content

Commit ceb349e

Browse files
committed
removing f-strings
1 parent 9997342 commit ceb349e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/fakerequests_advancedtest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@
5252
try:
5353
sensor = variable(i2c)
5454
print(
55-
f"The sensor {class_name} gives a temperature of {sensor.temperature} Celsius"
55+
"The sensor {} gives a temperature of {} Celsius".format(
56+
class_name, sensor.temperature
57+
)
5658
)
5759
found = True
5860
except ValueError:
5961
pass
6062
except Exception as e:
6163
raise ImportError(
62-
f"Could not find the module {package} in your lib folder."
64+
"Could not find the module {} in your lib folder.".format(package)
6365
) from e
6466

6567
if found:

0 commit comments

Comments
 (0)