Sandro Tosi <[email protected]> added the comment:
Hello Jan,
I noticed this bug and I wondered: what's your opinion now?
Optparse is deprecated and it will be replaced by argparse, so I'm not sure
it's "interesting" to introduce a new feature (the format_usage() method) but
it might still be interesting to fix the previous behaviour.
So, are you still more inclined to add the new method or just correcting the
harcoded formatter in get_usage() may be just fine?
If it's ok going on with the get_usage() fix, it's it just enough to:
def get_usage(self, formatter=self.formatter):
and then just use 'formatter' (instead of checking if it's None, and then
defaulting to self.formatter)? I didn't try this solution, so it might also be
you've already tested and it's not working, just brain dumping :)
Regards,
Sandro
----------
nosy: +sandro.tosi
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue6253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com