Kevin Orr added the comment:

Hmm, not sure why I thought I needed `inline code formatting`. It's all 
monospace anyway!

Anyway, I'm thinking that adding this somewhere in argparse.py:

class _WrappedIO(object):
    def __init__(self, fileobj):
        self._file = fileobj

    def __exit__(tp, val, tb):
        return True

    def __getattr__(self, name):
        return self._file.__gettattr__(name)

and then applying the attached patch *may* fix this.

----------
keywords: +patch
Added file: http://bugs.python.org/file37209/argparse.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22884>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to