From aef10428135f1d0b68d572c1c319bb03ed37b4a1 Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 1 Feb 2024 23:50:52 +0100 Subject: [PATCH] windows --- configparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configparser.py b/configparser.py index 5a52260..11baaaf 100644 --- a/configparser.py +++ b/configparser.py @@ -713,7 +713,7 @@ class RawConfigParser(MutableMapping): read_ok = [] for filename in filenames: try: - with open(filename, encoding=encoding) as fp: + with open(filename, encoding='utf8') as fp: self._read(fp, filename) except IOError: continue -- 2.7.4