From fa2e2b189194eecf9df76af563eeadca9caa0723 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Thu, 12 Mar 2026 08:30:35 +0100 Subject: [PATCH] LCORE-1438: nit: open file without open mode parameters --- scripts/gen_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_doc.py b/scripts/gen_doc.py index c62e18a44..d8ef843e8 100755 --- a/scripts/gen_doc.py +++ b/scripts/gen_doc.py @@ -31,7 +31,7 @@ def generate_docfile(directory): for file in files: if file.endswith(".py"): print(f"## [{file}]({file})", file=indexfile) - with open(file, "r", encoding="utf-8") as fin: + with open(file, encoding="utf-8") as fin: source = fin.read() try: mod = ast.parse(source)