Xiang Zhang added the comment:

I think this is a regression when coming to 3.x. In 2.7, r'\s+' is by default 
in ASCII mode and won't match unicode non-breaking spaces. In 3.x it's by 
default unicode mode so non-breaking spaces are replaced by spaces. I think we 
can just use [ \t\n\r\f\v]+.

Since here are more active core devs I am going to close #16623 and move this 
forward here.

----------
keywords: +patch
nosy: +paul.j3, roysmith, serhiy.storchaka
versions: +Python 3.6, Python 3.7
Added file: 
http://bugs.python.org/file46312/argparse-help-non-breaking-spaces.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to