[issue18972] Use argparse in email example scripts
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
New submission from Serhiy Storchaka: Here is a patch which replaces optparse to argparse in the Doc/includes/email-dir.py and Doc/includes/email-unpack.py scripts. ---------- assignee: docs@python components: Documentation, email files: email_examples_argparse.patch keywords: patch messages: 197263 nosy: barry, docs@python, r.david.murray, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Use argparse in email example scripts type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file31666/email_examples_argparse.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18972> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Georg Brandl added the comment: LGTM, please apply. (FileType is imported but not used in the second example?) ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18972> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: FileType have some problems (see issue13824). ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18972> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Roundup Robot added the comment: New changeset 1b1b1d4b28e8 by Serhiy Storchaka in branch 'default': Issue #18972: Modernize email examples and use the argparse module in them. http://hg.python.org/cpython/rev/1b1b1d4b28e8 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18972> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Serhiy Storchaka added the comment: Thank you Georg for the review ---------- assignee: docs@python -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18972> _______________________________________
participants (3)
-
Georg Brandl
-
Roundup Robot
-
Serhiy Storchaka