Martin Panter added the comment:

See duplicate Issue 22363 for the traceback, and a workaround. There is also a 
patch there similar to Garrett’s original fix, but using the RE r'%s *%s ?'.

I restored the diff from Garrett’s repository, in case it is still useful.

Yogesh: I am not familiar with how the code works, and I struggle to be excited 
at using regular expressions to build a usage message :). But can you explain 
why you changed Garrett’s original fix? Does it affect intentional double 
spaces (or tabs, non-ASCII spaces, etc) in customizable parts of the usage 
message?

----------
nosy: +martin.panter
stage:  -> patch review
title: argparse: mutually exclusive groups full of suppressed args can cause 
AssertionErrors -> argparse: mutually exclusive groups full of help-suppressed 
args can cause AssertionErrors

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

Reply via email to