[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1059

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-28 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Would be nice to add Misc/NEWS entry for this patch.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-27 Thread Florian Höch

Florian Höch added the comment:

> Thanks for your patch! As you can see, 2.7 is no longer touched as the
codebases diverged.

Thanks, although I have to say it's a little bit unfortunate that Python
2.7 will be left in a worse state than 2.6 where this bug did not exist.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-26 Thread Ned Deily

Ned Deily added the comment:

After discussing this offline with Łukasz, I'm going to take the risk of 
allowing the non-conforming 3.6 checkin to remain in for 3.6.0.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is this release critical for 3.6.0?

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-26 Thread Łukasz Langa

Łukasz Langa added the comment:

Thanks for your patch! As you can see, 2.7 is no longer touched as the 
codebases diverged. I'll release a 3.6 backport on PyPI sometime this weekend 
that you can use.

--
resolution:  -> fixed
status: open -> closed
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 40567b8e3478 by Łukasz Langa in branch '3.5':
Fixes #24142: [configparser] always join multiline values to not leave the 
parser in an invalid state
https://hg.python.org/cpython/rev/40567b8e3478

New changeset 306cfb866399 by Łukasz Langa in branch '3.6':
Merge 3.5, fix for #24142
https://hg.python.org/cpython/rev/306cfb866399

New changeset 876bee0bd0ba by Łukasz Langa in branch 'default':
Merge 3.6, fix for #24142
https://hg.python.org/cpython/rev/876bee0bd0ba

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2016-08-07 Thread Florian Höch

Florian Höch added the comment:

It seems this hasn't landed yet?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2015-09-04 Thread Łukasz Langa

Changes by Łukasz Langa :


--
assignee:  -> lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2015-05-07 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy:  -ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24142
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2015-05-07 Thread Ned Deily

Ned Deily added the comment:

[Thanks for the headsup about the contributor agreement form, now reported as 
https://github.com/python/pythondotorg/issues/747]

--
nosy: +ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24142
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2015-05-07 Thread Florian Höch

New submission from Florian Höch:

If a ParsingError occurs while reading a config file, the multi-line values 
collected while reading will never be joined because the error is raised before 
this can happen. This leads to very unexpected results, e.g. consider the 
following config.ini:

[DEFAULT]
test = test
invalid

 cfg = ConfigParser.ConfigParser()
 cfg.read(['config.ini'])

This will raise a ParsingError as expected. But the option values that were 
parsed without error are now all lists instead of strings:

 cfg.get('DEFAULT', test')
['test']

Patch attached.

--
components: Library (Lib)
files: ConfigParser.py.patch
keywords: patch
messages: 242718
nosy: fhoech
priority: normal
severity: normal
status: open
title: ConfigParser._read doesn't join multi-line values collected while 
reading if a ParsingError occured
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file39312/ConfigParser.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24142
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2015-05-07 Thread Florian Höch

Florian Höch added the comment:

[Btw, you might want to fix the contributor agreement form - I can't sign it 
because it shows no text, so I don't know what I'm supposed to enter in the 
fields (Firefox 37.0.2)]

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24142
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24142] ConfigParser._read doesn't join multi-line values collected while reading if a ParsingError occured

2015-05-07 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +lukasz.langa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24142
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com