mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fixed the way the cfg file markers values are split under win32
This commit is contained in:
parent
ec9b76d282
commit
91f0e346cc
2 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,8 @@ def _pop_values(values_dct, key):
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue