This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients Yogesh.Chaudhari, gholms, paul.j3
Date 2013-05-03.16:56:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367600162.83.0.316707745581.issue17890@psf.upfronthosting.co.za>
In-reply-to
Content
I see three solutions - 

1) gholms' patch which removes '() ' and [] '

2) Yogesh's patch which removes all duplicated spaces.

3) remove the 2 asserts. 

The first 2 do the same thing most of the time, but may differ if the user somehow inserts spaces into names.  The third leaves the extra blanks, but renders them innocuous.  I doubt if the asserts were written to catch this problem.  They probably were included to verify the usage line had been split up as expected prior to reassembling on multiple lines.

As best I can tell test_argparse.py does not test for these spaces.  Curiously though a port of argparse to javascript does have a test case with the extra space.
History
Date User Action Args
2013-05-03 16:56:02paul.j3setrecipients: + paul.j3, Yogesh.Chaudhari, gholms
2013-05-03 16:56:02paul.j3setmessageid: <1367600162.83.0.316707745581.issue17890@psf.upfronthosting.co.za>
2013-05-03 16:56:02paul.j3linkissue17890 messages
2013-05-03 16:56:02paul.j3create