On Mon, Aug 11, 2025 at 12:17:30AM +0800, Haoyang LIU wrote:
import osSend this as a separate patch with a Fixes tag.
@@ -131,7 +144,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}")
Fixes: 63e96ce050e5 ("scripts: fix all issues reported by pylint")
Ideally, pylint should be modified to complain about this or something...
I have a script for kernel patches which checks these kinds of mechanical
changes and someone could make a similar script which checks pylint
changes. https://github.com/error27/rename_rev
regards,
dan carpenter