Remove unused imports

Bug #1036666 reported by Rongze Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Rongze Zhu

Bug Description

Remove unused imports

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

************* Module volume.storwize_svc
W: 52,0: Unused import utils
************* Module volume.netapp
W: 27,0: Unused import string
************* Module test
W: 28,0: Unused import shutil
W: 27,0: Unused import os
W: 40,0: Unused import utils
************* Module api.sizelimit
W: 24,0: Unused import context
************* Module api.openstack.volume.contrib.volume_actions
W: 25,0: Unused import utils
W: 16,0: Unused import exc
************* Module api.openstack.volume.contrib.extended_snapshot_attributes
W: 23,0: Unused import db
************* Module api.openstack.common
W: 26,0: Unused import wsgi
W: 18,0: Unused import functools
W: 30,0: Unused import quota
W: 24,0: Unused import minidom
W: 27,0: Unused import xmlutil
************* Module api.openstack.wsgi
W: 22,0: Unused import time
W: 21,0: Unused import math
************* Module db.sqlalchemy.migration
W: 21,0: Unused import sys
************* Module db.sqlalchemy.models
W: 34,0: Unused import utils
************* Module testing.runner
W: 78,0: Unused import cfg
W: 76,0: Unused import flags
************* Module openstack.common.rpc.common
W: 25,0: Unused import cfg
W: 22,0: Unused import sys
************* Module openstack.common.notifier.api
W: 16,0: Unused import inspect
************* Module tests.test_utils
W: 29,0: Unused import iso8601
W: 23,0: Unused import shutil
W: 30,0: Unused import lockfile
W: 22,0: Unused import socket
W: 27,0: Unused import eventlet
W: 28,0: Unused import greenpool
************* Module tests.api.openstack.test_wsgi
W: 9,0: Unused import utils
W: 4,0: Unused import json
W: 12,0: Unused import cinder
************* Module tests.api.openstack.common
W: 18,0: Unused import webob
************* Module tests.api.openstack.test_common
W: 25,0: Unused import minidom
W: 27,0: Unused import exception
W: 22,0: Unused import etree
W: 30,0: Unused import xmlutil
************* Module tests.test_storwize_svc
W: 34,0: Unused import utils
************* Module tests.db.fakes
W: 22,0: Unused import exception
************* Module tests.test_migrations
W: 30,0: Unused import unittest
************* Module tests.integrated.api.client
W: 18,0: Unused import urllib
************* Module tests.integrated.test_xml
W: 23,0: Unused import xmlutil
************* Module tests.integrated.test_extensions
W: 18,0: Unused import extensions
************* Module tests.test_quota
W: 27,0: Unused import scheduler_driver
************* Module tests.test_test_utils
W: 17,0: Unused import db
************* Module tests.scheduler.fakes
W: 19,0: Unused import mox
W: 21,0: Unused import db
************* Module tests.scheduler.test_scheduler
W: 27,0: Unused import exception
W: 36,0: Unused import fakes
W: 22,0: Unused import datetime
W: 23,0: Unused import json
W: 29,0: Unused import notifier
W: 31,0: Unused import rpc_common
************* Module tests.test_misc
W: 17,0: Unused import commands
W: 18,0: Unused import errno
W: 23,0: Unused import greenpool
W: 24,0: Unused import greenthread
W: 21,0: Unused import select
W: 25,0: Unused import lockfile
W: 29,0: Unused import utils
************* Module tests.test_flags
W: 21,0: Unused import tempfile
W: 20,0: Unused import os

Rongze Zhu (zrzhit)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/11333

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

Reviewed: https://review.openstack.org/11333
Committed: http://github.com/openstack/cinder/commit/6e5ef61f8f752fad4c2209b5ebc477f47693506e
Submitter: Jenkins
Branch: master

commit 6e5ef61f8f752fad4c2209b5ebc477f47693506e
Author: RongzeZhu <email address hidden>
Date: Tue Aug 14 22:07:42 2012 +0800

    Remove unused imports

    Fixes bug #1036666

    Removed unused imports found by:
    find . -type f -name "*py" -exec pylint -r n {} \; | grep -E "Unused imp|^\*"

    Change-Id: Iad69354dd47c2a0dfa3a23a95c1a23eb66773b8d

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: folsom-3 → 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.