contrib/import-checker.py
changeset 52650 b95b12cb31e2
parent 52644 e627cc25b6f3
child 52656 3e84e001b6c1
--- a/contrib/import-checker.py	Mon Jan 06 01:20:01 2025 -0500
+++ b/contrib/import-checker.py	Mon Jan 06 01:27:42 2025 -0500
@@ -3,7 +3,6 @@
 
 import ast
 import collections
-import io
 import os
 import sys
 
@@ -705,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 io.open(f, 'r', encoding='utf-8') as src:
+        with open(f, 'r', encoding='utf-8') as src:
             for script, modname, t, line in embedded(f, modname, src):
                 yield script, modname.encode('utf8'), t, line