diff --git a/tools/formatter.py b/tools/formatter.py index 7437ebba..e6f57bfe 100644 --- a/tools/formatter.py +++ b/tools/formatter.py @@ -2,7 +2,6 @@ import re import json -import io """ Examples: @@ -327,7 +326,7 @@ def go(path): print(f"{len(entries)} checked.") - with io.open(path, "w", encoding='utf-8', newline='\r\n') as f2: + with open(path, "w", encoding='utf-8', newline='\r\n') as f2: f2.write(per_line_entries(entries)) print("Writing completed. All done.")