[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility |
Date: |
Wed, 30 Aug 2017 12:02:35 +0100 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Fri, Aug 25, 2017 at 04:57:29PM +0100, Stefan Hajnoczi wrote:
> Many scripts can benefit from the standard library argparse module, which has
> improvements over the older optparse module. Unfortunately argparse was only
> shipped in Python 2.7 so we need a fallback for Python 2.6.
>
> This patch series adds a copy of argparse.py and updates scripts as necessary
> to import it.
>
> Stefan Hajnoczi (3):
> scripts: add argparse module for Python 2.6 compatibility
> docker.py: Python 2.6 argparse compatibility
> tests: migration/guestperf Python 2.6 argparse compatibility
>
> COPYING.PYTHON | 270 ++++
> scripts/argparse.py | 2406
> ++++++++++++++++++++++++++++++++++++
> tests/docker/docker.py | 4 +-
> tests/migration/guestperf/shell.py | 8 +-
> 4 files changed, 2684 insertions(+), 4 deletions(-)
> create mode 100644 COPYING.PYTHON
> create mode 100644 scripts/argparse.py
>
> --
> 2.13.5
>
>
Thanks, applied to my block-next tree:
https://github.com/stefanha/qemu/commits/block-next
Stefan
- Re: [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility, (continued)
Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, John Snow, 2017/08/28
Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility,
Stefan Hajnoczi <=