diff mbox series

tools: Don't use f-string syntax

Message ID 20240209231001.1041957-1-denkenz@gmail.com (mailing list archive)
State Accepted
Commit a51b6a96c8f4dd4a1b5097a39541fa49aa828739
Headers show
Series tools: Don't use f-string syntax | expand

Commit Message

Denis Kenzior Feb. 9, 2024, 11:09 p.m. UTC
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(-)

Comments

patchwork-bot+ofono@kernel.org Feb. 12, 2024, 3:10 a.m. UTC | #1
Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <denkenz@gmail.com>:

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!
diff mbox series

Patch

diff --git a/tools/provisiontool b/tools/provisiontool
index 792732778215..2067a66a9951 100755
--- a/tools/provisiontool
+++ b/tools/provisiontool
@@ -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