scripts: add argparse module for Python 2.6 compatibility
commit47e1cb1f0a130baa438d895eff5d05004c9a9aa2
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 25 Aug 2017 15:57:30 +0000 (25 16:57 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Aug 2017 11:02:11 +0000 (30 12:02 +0100)
tree26166b1f74835584f7a3d82a334a1b6fa80f299d
parentc3a8fe331eb4310e2d058f1c15a817d255840323
scripts: add argparse module for Python 2.6 compatibility

The minimum Python version supported by QEMU is 2.6.  The argparse
standard library module was only added in Python 2.7.  Many scripts
would like to use argparse because it supports command-line
sub-commands.

This patch adds argparse.  See the top of argparse.py for details.

Suggested-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Message-id: 20170825155732.15665-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
COPYING.PYTHON [new file with mode: 0644]
scripts/argparse.py [new file with mode: 0644]