List creation could be rewritten as a list literal

Bug #1482588 reported by Ankit Agrawal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Ankit Agrawal

Bug Description

In sqlalchemy/artifacts.py --> _out method, list "deparr' is created as below.

deparr = []
deparr.append(_out(dep.dest, new_show_level))

could be rewritten as

deparr = [_out(dep.dest, new_show_level)]

Changed in glance:
assignee: nobody → Ankit Agrawal (ankitagrawal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/210307

Changed in glance:
status: New → In Progress
Changed in glance:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/210307
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=b019d95a0da354776d23e3a5234e4f5a498af364
Submitter: Jenkins
Branch: master

commit b019d95a0da354776d23e3a5234e4f5a498af364
Author: ankitagrawal <email address hidden>
Date: Wed Aug 5 05:49:46 2015 -0700

    List creation could be rewritten as a list literal

    In _out method of sqlalchemy/artifacts.py module,
    list "deparr' is created as below.

    deparr = []
    deparr.append(_out(dep.dest, new_show_level))

    Could be rewritten as

    deparr = [_out(dep.dest, new_show_level)]

    Closes-Bug: 1482588
    Change-Id: I44ff4683d06a4593e2f2528d6f193c656657206c

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → liberty-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-rc1 → 11.0.0
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.