yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36626
[Bug 1482586] [NEW] Dictionary creation could be rewritten as a dictionary literal
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
Follow ups