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 ckessler
Recipients ckessler, docs@python
Date 2018-07-20.20:34:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532118890.75.0.56676864532.issue34174@psf.upfronthosting.co.za>
In-reply-to
Content
In document https://docs.python.org/2/library/argparse.html#argparse.RawDescriptionHelpFormatter

this will fail with NameError: global name 'textwrap' is not defiend

>>> parser = argparse.ArgumentParser(
...     prog='PROG',
...     formatter_class=argparse.RawDescriptionHelpFormatter,
...     description=textwrap.dedent('''\
...         Please do not mess up this text!
...         --------------------------------
...             I have indented it
...             exactly the way
...             I want it
...         '''))
History
Date User Action Args
2018-07-20 20:34:50ckesslersetrecipients: + ckessler, docs@python
2018-07-20 20:34:50ckesslersetmessageid: <1532118890.75.0.56676864532.issue34174@psf.upfronthosting.co.za>
2018-07-20 20:34:50ckesslerlinkissue34174 messages
2018-07-20 20:34:50ckesslercreate