Public bug reported:
There are several places where dict is created and then initialized with
keys later.
for example.
test_metadef_resourcetypes.py module,
ResourceTypeController->index method.
filters = {}
filter['namespace'] = namespace
could be rewritten as
filters = {'namespace': namespace}
** Affects: glance
Importance: Undecided
Assignee: Ankit Agrawal (ankitagrawal)
Status: New
** 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/1482586
Title:
Dictionary creation could be rewritten as a dictionary literal
Status in Glance:
New
Bug description:
There are several places where dict is created and then initialized
with keys later.
for example.
test_metadef_resourcetypes.py module,
ResourceTypeController->index method.
filters = {}
filter['namespace'] = namespace
could be rewritten as
filters = {'namespace': namespace}
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1482586/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp