Message338401
Hi!
FancyGetopt.generate_help crashes if help text in option_table is None:
instance = FancyGetopt([('long', 'l', None)])
help_text = instance.generate_help()
TypeError Traceback (most recent call last)
<ipython-input-40-04e4e328455e> in <module>
----> 1 a.generate_help()
/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/fancy_getopt.py in generate_help(self, header)
352 (max_opt, opt_names, text[0]))
353 else:
--> 354 lines.append(" --%-*s" % opt_names)
355
356 for l in text[1:]:
TypeError: * wants int
This code is in master branch too.
And if help_text is empty string code behavior is like a help_text is actually pass and added 2 whitespaces. |
|
Date |
User |
Action |
Args |
2019-03-19 19:28:41 | crztssr | set | recipients:
+ crztssr |
2019-03-19 19:28:41 | crztssr | set | messageid: <1553023721.87.0.244603228495.issue36371@roundup.psfhosted.org> |
2019-03-19 19:28:41 | crztssr | link | issue36371 messages |
2019-03-19 19:28:41 | crztssr | create | |
|