windows
authorpierre <pierre.ratinaud@univ-tlse2.fr>
Thu, 1 Feb 2024 22:50:52 +0000 (23:50 +0100)
committerpierre <pierre.ratinaud@univ-tlse2.fr>
Thu, 1 Feb 2024 22:50:52 +0000 (23:50 +0100)
configparser.py

index 5a52260..11baaaf 100644 (file)
@@ -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