← 输入框|bugs.python.org|刷新

➜

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.

作者 paul.j3
收信人 Yogesh.Chaudhari, gholms, paul.j3
日期 2013-05-03.16:56:02
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1367600162.83.0.316707745581.issue17890@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2013-05-03 16:56:02paul.j3修改recipients: + paul.j3, Yogesh.Chaudhari, gholms
2013-05-03 16:56:02paul.j3修改messageid: <1367600162.83.0.316707745581.issue17890@psf.upfronthosting.co.za>
2013-05-03 16:56:02paul.j3链接issue17890 messages
2013-05-03 16:56:02paul.j3创建