]> granicus.if.org Git - python/commitdiff
Also specify encoding when reading setup.cfg (#12320)
authorÉric Araujo <merwok@netwok.org>
Sun, 12 Jun 2011 21:02:57 +0000 (23:02 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 12 Jun 2011 21:02:57 +0000 (23:02 +0200)
Lib/packaging/util.py

index 29994c08810441dae1203b1e60524dcd87d19369..4dff547a83550227c9a132b800aa96677ed345f7 100644 (file)
@@ -1044,7 +1044,7 @@ def cfg_to_args(path='setup.cfg'):
     if not os.path.exists(path):
         raise PackagingFileError("file '%s' does not exist" %
                                  os.path.abspath(path))
-    config.read(path)
+    config.read(path, encoding='utf-8')
 
     kwargs = {}
     for arg in D1_D2_SETUP_ARGS: