Skip to contentSkip to conversation

tools: Don't use f-string syntax

PATCH Applied Denis Kenzior 2 participants 2 messages Feb 9, 2024 – Feb 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: Don't use f-string syntax

Some older Python 3.x versions do not support this syntax. provisiontool only had a single instance of this syntax use and it is easy enough to get rid of it. This makes provisiontool compatible with older Python3 versions.

---
 tools/provisiontool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/provisiontool +1 -1
index 792732778215..2067a66a9951 100755
@@ -212,7 +212,7 @@ class MobileBroadbandProviderInfo:
                     providers.append(info)
 
         except ET.ParseError as e:
-            print(f"Error parsing XML: {e}")
+            print("Error parsing XML: " + e)
 
         return providers
 
Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to ofono.git (master) by Denis Kenzior <[email protected]>:

Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <[email protected]>:

Quoted 7 lines · On Fri, 9 Feb 2024 17:09:48 -0600 you wrote:

Some older Python 3.x versions do not support this syntax. provisiontool only had a single instance of this syntax use and it is easy enough to get rid of it. This makes provisiontool compatible with older Python3 versions.

---
 tools/provisiontool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- tools: Don't use f-string syntax

    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=a51b6a96c8f4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html