← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1482588] [NEW] List creation could be rewritten as a list literal

 

Public bug reported:

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)]

** Affects: glance
     Importance: Undecided
     Assignee: Ankit Agrawal (ankitagrawal)
         Status: In Progress

** Changed in: glance
     Assignee: (unassigned) => Ankit Agrawal (ankitagrawal)

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

Title:
  List creation could be rewritten as a list literal

Status in Glance:
  In Progress

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)]

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


Follow ups