[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 com
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility |
Date: |
Fri, 25 Aug 2017 16:57:29 +0100 |
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
- [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 3/3] tests: migration/guestperf Python 2.6 argparse compatibility, Stefan Hajnoczi, 2017/08/25
- [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility, Stefan Hajnoczi, 2017/08/25
- [Qemu-devel] [PATCH 1/3] scripts: add argparse module for Python 2.6 compatibility, Stefan Hajnoczi, 2017/08/25
- Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, no-reply, 2017/08/25
- Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, Philippe Mathieu-Daudé, 2017/08/25