python: Backport argparse to older platforms.
authorEthan Jackson <ethan@nicira.com>
Thu, 22 Sep 2011 19:05:18 +0000 (12:05 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 27 Sep 2011 18:38:30 +0000 (11:38 -0700)
commit6c88547dd0f75a29e6d1c0cd3c76d9678fa4752f
treec292e955a19f20a64f3c8595a01f85556660e06c
parent484185ec4e1329bbc42cf0c0d70f24c732b748f8
python: Backport argparse to older platforms.

Argparse has some convenient advantages over optparse including the
ability to handle optional arguments to flags.  It also supports
parsing arguments as well as options.

This patch copies argparse.py from Python 2.7 into a newly created
compat directory.  It made some very minor syntactic updates in the
process.  Platforms which have a Python version too old to include
argparse by default will have this compat version installed as a
workaround.
COPYING
Makefile.am
debian/control
debian/copyright.in
python/compat/argparse.py [new file with mode: 0644]
python/compat/automake.mk [new file with mode: 0644]
python/compat/uuid.py [moved from xenserver/uuid.py with 100% similarity]
rhel/openvswitch.spec.in
xenserver/README
xenserver/automake.mk
xenserver/openvswitch-xen.spec