From a052531c1316feb64e6dbee83f724c76d8d5f2e8 Mon Sep 17 00:00:00 2001 From: Fabian Wunsch Date: Sat, 9 Apr 2022 23:32:17 +0200 Subject: [PATCH] Even available without import since 3.5 --- tools/formatter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.")