commit | 91f0e346cc6ef0b093bd9ac2ccf98f7d46c22b09 | [log] [tgz] |
---|---|---|
author | Tarek Ziade <tarek@ziade.org> | Sat May 21 12:00:10 2011 +0200 |
committer | Tarek Ziade <tarek@ziade.org> | Sat May 21 12:00:10 2011 +0200 |
tree | dca455375c57cce896a6a00043ab34e1275f6ce4 | |
parent | ec9b76d282ecb3a1a113574f24b476ad3309e574 [diff] [blame] |
fixed the way the cfg file markers values are split under win32
diff --git a/Lib/packaging/config.py b/Lib/packaging/config.py index 6bbfdc3..6df2bab 100644 --- a/Lib/packaging/config.py +++ b/Lib/packaging/config.py
@@ -21,7 +21,8 @@ if not vals_str: return fields = [] - for field in vals_str.split(os.linesep): + # the line separator is \n for setup.cfg files + for field in vals_str.split('\n'): tmp_vals = field.split('--') if len(tmp_vals) == 2 and not interpret(tmp_vals[1]): continue