Remove deprecated 'version' argument from call to ArgumentParser()

Bug #1281856 reported by Cyril Roelandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Cyril Roelandt

Bug Description

The 'version' parameter of argparse.ArgumentParser() is deprecated. In Python 2.7 argparse is part of the standard library, and the 'version' parameter can be safely omitted. In Python 2.6, it's a third-party library, and this parameter is also optional, its default value is 'None'. In Python 3, argparse is part of the standard library but the 'version' parameter does not exist and using it causes a failure in the test suite.

Removing this parameter does not change the behaviour of the code.

Changed in python-glanceclient:
assignee: nobody → Cyril Roelandt (cyril-roelandt)
Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/74168
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=ecf2868fb3bd3374d196b28fedfa0fb94f5757f4
Submitter: Jenkins
Branch: master

commit ecf2868fb3bd3374d196b28fedfa0fb94f5757f4
Author: Cyril Roelandt <email address hidden>
Date: Mon Feb 17 22:32:19 2014 +0100

    test_shell: remove a deprecated keyword argument

    The 'version' keyword argument of argparse.ArgumentParser is deprecated. It was
    set to 'None' anyway, so just remove it.

    Closes-Bug: #1281856
    Change-Id: I6e5af0d90e9b1e7a6a60d5183c13299101148442

Changed in python-glanceclient:
status: In Progress → Fix Committed
Louis Taylor (kragniz)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.