main: adjust argparse usage for older Python versions
commitf4def636b93e195505641f9a1125cd3cd51e4edd
authorDavid Aguilar <davvid@gmail.com>
Wed, 25 Aug 2021 07:07:01 +0000 (25 00:07 -0700)
committerDavid Aguilar <davvid@gmail.com>
Wed, 25 Aug 2021 07:19:24 +0000 (25 00:19 -0700)
tree51cd75e844c022896cb60563328976ec00cf3e64
parent5a2d626e79cb91a75c692875371b7d76d9ba8f4f
main: adjust argparse usage for older Python versions

Limit the argparse update from fb210c07805e9c0b3f7fec0370ac36396070a9b7
by making it active on newer versions of Python only.

This fixes a regression on older versions of Python, eg. 2.7.5 on
RHEL 7.9, where this usage prevents sub-commands from working properly.

Closes #1155
Reported-by: Andreas Schnederle-Wagner <schnederle@futureweb.at>
Signed-off-by: David Aguilar <davvid@gmail.com>
CHANGES.rst
cola/main.py