All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/checktransupdate.py: fix missing f prefix in f-string
@ 2025-08-11 17:07 Haoyang LIU
  2025-08-11 17:24 ` Jonathan Corbet
  0 siblings, 1 reply; 3+ messages in thread
From: Haoyang LIU @ 2025-08-11 17:07 UTC (permalink / raw)
  To: Jonathan Corbet, Yanteng Si, Dongliang Mu
  Cc: hust-os-kernel-patches, Haoyang LIU, linux-kernel

add a f prefix for f-string

Fixes: 63e96ce050e5 ("scripts: fix all issues reported by pylint")
Signed-off-by: Haoyang LIU <tttturtleruss@gmail.com>
---
 scripts/checktransupdate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checktransupdate.py b/scripts/checktransupdate.py
index e39529e46c3d..b57fb9139f5f 100755
--- a/scripts/checktransupdate.py
+++ b/scripts/checktransupdate.py
@@ -131,7 +131,7 @@ def check_per_file(file_path):
     opath = get_origin_path(file_path)
 
     if not os.path.isfile(opath):
-        logging.error("Cannot find the origin path for {file_path}")
+        logging.error(f"Cannot find the origin path for {file_path}")
         return
 
     o_from_head = get_latest_commit_from(opath, "HEAD")
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scripts/checktransupdate.py: fix missing f prefix in f-string
  2025-08-11 17:07 [PATCH] scripts/checktransupdate.py: fix missing f prefix in f-string Haoyang LIU
@ 2025-08-11 17:24 ` Jonathan Corbet
  2025-08-12  5:08   ` Dongliang Mu
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Corbet @ 2025-08-11 17:24 UTC (permalink / raw)
  To: Haoyang LIU, Yanteng Si, Dongliang Mu
  Cc: hust-os-kernel-patches, Haoyang LIU, linux-kernel

Haoyang LIU <tttturtleruss@gmail.com> writes:

> add a f prefix for f-string
>
> Fixes: 63e96ce050e5 ("scripts: fix all issues reported by pylint")
> Signed-off-by: Haoyang LIU <tttturtleruss@gmail.com>
> ---
>  scripts/checktransupdate.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/checktransupdate.py b/scripts/checktransupdate.py
> index e39529e46c3d..b57fb9139f5f 100755
> --- a/scripts/checktransupdate.py
> +++ b/scripts/checktransupdate.py
> @@ -131,7 +131,7 @@ def check_per_file(file_path):
>      opath = get_origin_path(file_path)
>  
>      if not os.path.isfile(opath):
> -        logging.error("Cannot find the origin path for {file_path}")
> +        logging.error(f"Cannot find the origin path for {file_path}")
>          return

Ouch, good catch; I've applied this.

Thanks,

jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scripts/checktransupdate.py: fix missing f prefix in f-string
  2025-08-11 17:24 ` Jonathan Corbet
@ 2025-08-12  5:08   ` Dongliang Mu
  0 siblings, 0 replies; 3+ messages in thread
From: Dongliang Mu @ 2025-08-12  5:08 UTC (permalink / raw)
  To: Jonathan Corbet, Haoyang LIU, Yanteng Si
  Cc: hust-os-kernel-patches, linux-kernel


On 8/12/25 1:24 AM, Jonathan Corbet wrote:
> Haoyang LIU <tttturtleruss@gmail.com> writes:
>
>> add a f prefix for f-string
>>
>> Fixes: 63e96ce050e5 ("scripts: fix all issues reported by pylint")
>> Signed-off-by: Haoyang LIU <tttturtleruss@gmail.com>
>> ---
>>   scripts/checktransupdate.py | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/scripts/checktransupdate.py b/scripts/checktransupdate.py
>> index e39529e46c3d..b57fb9139f5f 100755
>> --- a/scripts/checktransupdate.py
>> +++ b/scripts/checktransupdate.py
>> @@ -131,7 +131,7 @@ def check_per_file(file_path):
>>       opath = get_origin_path(file_path)
>>   
>>       if not os.path.isfile(opath):
>> -        logging.error("Cannot find the origin path for {file_path}")
>> +        logging.error(f"Cannot find the origin path for {file_path}")
>>           return
> Ouch, good catch; I've applied this.

Wonder why pylint cannot catch this issue.

The Fixes tag is my commit - "fix all issues reported by pylint", :\

Dongliang Mu

>
> Thanks,
>
> jon


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-12  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 17:07 [PATCH] scripts/checktransupdate.py: fix missing f prefix in f-string Haoyang LIU
2025-08-11 17:24 ` Jonathan Corbet
2025-08-12  5:08   ` Dongliang Mu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.