Remove unused imports in glance
Bug #1264245 reported by
Lee Li
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Lee Li |
Bug Description
There are some unused import in glance. The command 'find . -type f -name "*py" -exec pylint -r n {} \; | grep -E "Unused imp|^\*"' check out one:
************* Module glance.
W: 33,0: Unused import glance
And there are some can't check out by this command, such as 'import domain' in v2.image_data.py.
Changed in glance: | |
assignee: | nobody → Lee Li (lilinguo) |
Changed in glance: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | icehouse-2 → 2014.1 |
To post a comment you must log in.
We already allowed F401 check in tox.ini. So its should be enough for us.
As for this module - I guess, that the issue is deeper. See the code of glance. tests.unit. test_image_ cache module.
32 #NOTE(bcwaldon): This is imported to load the registry config options
EE 33 import glance.registry # noqa