Remove unused imports

Bug #1037592 reported by Rongze Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Wishlist
Rongze Zhu

Bug Description

Remove unused imports

find . -type f -name "*py" -exec pylint -r n {} \; | grep -E "Unused imp|^\*"

************* Module api.v1.router
W: 18,0: Unused import routes
************* Module api.v1.images
************* Module db.sqlalchemy.migrate_repo.versions
************* Module db.sqlalchemy.migrate_repo.versions.007_add_owner
W: 18,0: Unused import UsageError from wildcard import
W: 19,0: Unused import and_ from wildcard import
************* Module db.sqlalchemy.migrate_repo.versions.001_add_images_table
W: 18,0: Unused import UsageError from wildcard import
W: 19,0: Unused import text from wildcard import
************* Module db.sqlalchemy.migrate_repo.versions.005_size_big_integer
W: 18,0: Unused import UsageError from wildcard import
W: 19,0: Unused import text from wildcard import
************* Module db.sqlalchemy.migrate_repo.versions.012_id_to_uuid
************* Module db.sqlalchemy.migrate_repo.versions.015_quote_swift_credentials
************* Module db.sqlalchemy.migrate_repo.versions.004_add_checksum
W: 18,0: Unused import UsageError from wildcard import
W: 19,0: Unused import engine_from_config from wildcard import
W: 18,0: Unused import NoSuchTableError from wildcard import
************* Module db.sqlalchemy.migrate_repo.versions.013_add_protected
************* Module db.sqlalchemy.migrate_repo.versions.008_add_image_members_table
W: 18,0: Unused import UsageError from wildcard import
W: 33,0: Unused import PrimaryKeyConstraint from wildcard import
************* Module tests.unit.base
W: 26,0: Unused import filesystem
************* Module tests.unit.test_image_cache
W: 27,0: Unused import exception
************* Module tests.unit.test_config
W: 26,0: Unused import pruner
************* Module tests.unit.test_misc
W: 18,0: Unused import commands
W: 19,0: Unused import datetime
W: 21,0: Unused import re
W: 25,0: Unused import importutils
************* Module tests.functional.v1.test_swift
W: 40,0: Unused import glance
************* Module tests.stubs
W: 35,0: Unused import utils
************* Module tests.utils
W: 30,0: Unused import config
W: 35,0: Unused import store

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/11464

Changed in glance:
assignee: nobody → Rongze Zhu (zrzhit)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/11464
Committed: http://github.com/openstack/glance/commit/aea4f4416b7bc34b9bd27955cd1ccc99af6b09ad
Submitter: Jenkins
Branch: master

commit aea4f4416b7bc34b9bd27955cd1ccc99af6b09ad
Author: RongzeZhu <email address hidden>
Date: Thu Aug 16 22:16:56 2012 +0800

    Remove unused imports

    Fixes bug #1037592

    Change-Id: I3365d028ab67931517d2f94cc4b7e3752fbdb869

Changed in glance:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon)
Changed in glance:
importance: Undecided → Wishlist
milestone: none → folsom-rc1
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: folsom-rc1 → 2012.2
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.