[Python-checkins] distutils2: Synchronize config with packaging (fixes #13170)

eric.araujo python-checkins at python.org
Tue Oct 18 18:16:40 CEST 2011


http://hg.python.org/distutils2/rev/5d858149df06
changeset:   1212:5d858149df06
parent:      1210:c4392e526e85
user:        Éric Araujo <merwok at netwok.org>
date:        Tue Oct 18 18:05:20 2011 +0200
summary:
  Synchronize config with packaging (fixes #13170)

files:
  distutils2/config.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/distutils2/config.py b/distutils2/config.py
--- a/distutils2/config.py
+++ b/distutils2/config.py
@@ -237,8 +237,7 @@
                     raise ValueError('invalid line for package_data: %s '
                                      '(misses "=")' % line)
                 key, value = data
-                globs = self.dist.package_data.setdefault(key.strip(), [])
-                globs.extend([v.strip() for v in value.split(',')])
+                self.dist.package_data[key.strip()] = value.strip()
 
             self.dist.data_files = []
             for data in files.get('data_files', []):

-- 
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list