From 9b8a1d59a1b5e0f3db0512bc92a071463c17b0ae Mon Sep 17 00:00:00 2001 From: Andrew Mirsky Date: Wed, 25 Jun 2025 18:07:51 -0400 Subject: [PATCH] adjusting syntax to support python 3.10 --- amqtt/codecs_amqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amqtt/codecs_amqtt.py b/amqtt/codecs_amqtt.py index 81b2661..1db2d9c 100644 --- a/amqtt/codecs_amqtt.py +++ b/amqtt/codecs_amqtt.py @@ -144,6 +144,6 @@ def int_to_bytes_str(value: int) -> bytes: def float_to_bytes_str(value: float, places:int=3) -> bytes: """Convert an float value to a bytes array containing the numeric character.""" - quant = Decimal(f"0.{"".join(['0' for i in range(places-1)])}1") + quant = Decimal(f"0.{''.join(['0' for i in range(places-1)])}1") rounded = Decimal(value).quantize(quant, rounding=ROUND_HALF_UP) return str(rounded).encode("utf-8")