diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-01-22 06:37:22 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2017-01-22 06:37:22 (GMT) |
commit | 7fe28ad8375677a6d696271d48783d6c38a74dce (patch) | |
tree | 50624d4578d72021f5181480e818226181030334 /Lib/argparse.py | |
parent | d7d87ca9b0495f1dd04863fbb93226c0e0f7af5f (diff) | |
download | cpython-7fe28ad8375677a6d696271d48783d6c38a74dce.zip cpython-7fe28ad8375677a6d696271d48783d6c38a74dce.tar.gz cpython-7fe28ad8375677a6d696271d48783d6c38a74dce.tar.bz2 |
Issue #29290: argparse help messages won't wrap at non-breaking spaces.
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index 9a06719..0d881b8 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -176,7 +176,7 @@ class HelpFormatter(object): self._root_section = self._Section(self, None) self._current_section = self._root_section - self._whitespace_matcher = _re.compile(r'\s+') + self._whitespace_matcher = _re.compile(r'\s+', _re.ASCII) self._long_break_matcher = _re.compile(r'\n\n\n+') # =============================== |