contrib/import-checker.py
changeset 52656 3e84e001b6c1
parent 52650 b95b12cb31e2
child 52741 5c48fd4c0e68
--- a/contrib/import-checker.py	Mon Jan 06 01:44:46 2025 -0500
+++ b/contrib/import-checker.py	Tue Jan 07 17:28:46 2025 -0500
@@ -704,7 +704,7 @@
         # Python source file encoding. But in reality we don't use anything
         # other than ASCII (mainly) and UTF-8 (in a few exceptions), so
         # simplicity is fine.
-        with open(f, 'r', encoding='utf-8') as src:
+        with open(f, encoding='utf-8') as src:
             for script, modname, t, line in embedded(f, modname, src):
                 yield script, modname.encode('utf8'), t, line