← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1553030] Re: Change optparse to argparse, optparse is Deprecated since python version 2.7

 

Reviewed:  https://review.openstack.org/287666
Committed: https://git.openstack.org/cgit/openstack/python-swiftclient/commit/?id=17aa6c789e3c28e59be3b92e6fa65edb89077436
Submitter: Jenkins
Branch:    master

commit 17aa6c789e3c28e59be3b92e6fa65edb89077436
Author: Tim Burke <tim.burke@xxxxxxxxx>
Date:   Wed Mar 2 16:02:28 2016 +0000

    Port from optparse to argparse
    
    Why now?
    
    * argparse was introduced in Python 3.2 and back-ported to Python 2.7.
      Until we dropped Python 2.6 support, we were stuck on optparse.
    
    * keystoneauth.loading.cli provides register_argparse_arguments and
      load_from_argparse_arguments helper methods. Now that we're moving
      toward Keystone Session support, argparse seems required.
    
    Closes-Bug: 1553030
    Change-Id: I5139fb64a8631a3010680090fd04345f95c55c7b


** Changed in: python-swiftclient
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1553030

Title:
  Change optparse to argparse, optparse is Deprecated since python
  version 2.7

Status in Glance:
  In Progress
Status in oslo-incubator:
  Won't Fix
Status in python-swiftclient:
  Fix Released
Status in OpenStack Object Storage (swift):
  In Progress

Bug description:
  In glance currently we use optparse.So we can move optparse to argparse because optparse is deprecated since python version2.7.
  Related link:- https://docs.python.org/2/library/optparse.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1553030/+subscriptions