]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enable F402 checks and fix violations
authorZhiteng Huang <zhithuang@ebaysf.com>
Wed, 30 Jul 2014 04:44:05 +0000 (12:44 +0800)
committerRushi Agrawal <rushi.agr@gmail.com>
Wed, 13 Aug 2014 16:31:05 +0000 (22:01 +0530)
commit3accff25db175f9abf6fa52a4c4a89b449e50451
treebd7902611b439560a8fceb0dd4b9743ca0e5e6b7
parent03884b3d64db64565c5f21da5db26eb7e01b4cff
Enable F402 checks and fix violations

This change enables F402 hacking check and fixes all violations found.

[F402] import module from line N shadowed by loop variable

Basically this rule tries to avoid loop variables using the same name as
imported module, for example:

    from cinder import volume
    ...

    for volume in volumes:
        ...

Change-Id: Ie3010616ca87fda113d452fe684e6cff3d5fd978
cinder/api/contrib/used_limits.py
cinder/api/contrib/volume_host_attribute.py
cinder/api/contrib/volume_image_metadata.py
cinder/api/contrib/volume_mig_status_attribute.py
cinder/api/contrib/volume_tenant_attribute.py
tox.ini