Imports cleanup

Fixes bug #1013770

1. Reorder imports by full module path
2. Insert two blank lines after the last import

Change-Id: I294ac3ab528f17a72811392d1732158e9487f3bf
This commit is contained in:
Zhongyue Luo
2012-06-16 00:58:36 +08:00
parent 28d730343f
commit a7ae9c8828
10 changed files with 7 additions and 5 deletions

0
nova/rootwrap/__init__.py Executable file → Normal file
View File

2
nova/rootwrap/compute.py Executable file → Normal file
View File

@@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from nova.rootwrap import filters
filterlist = [
# nova/virt/disk/mount.py: 'kpartx', '-a', device
# nova/virt/disk/mount.py: 'kpartx', '-d', device

1
nova/rootwrap/filters.py Executable file → Normal file
View File

@@ -15,7 +15,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
import re

2
nova/rootwrap/network.py Executable file → Normal file
View File

@@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from nova.rootwrap import filters
filterlist = [
# nova/network/linux_net.py: 'ip', 'addr', 'add', str(floating_ip)+'/32'i..
# nova/network/linux_net.py: 'ip', 'addr', 'del', str(floating_ip)+'/32'..

2
nova/rootwrap/volume.py Executable file → Normal file
View File

@@ -15,9 +15,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from nova.rootwrap import filters
filterlist = [
# nova/volume/iscsi.py: iscsi_helper '--op' ...
filters.CommandFilter("/usr/sbin/ietadm", "root"),

1
nova/rootwrap/wrapper.py Executable file → Normal file
View File

@@ -15,7 +15,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
import sys

View File

@@ -29,6 +29,7 @@ from nova.tests import fake_utils
from nova.virt.baremetal import dom
from nova.virt.baremetal import proxy
FLAGS = flags.FLAGS

View File

@@ -17,6 +17,7 @@
import os
import StringIO
files = {}
disk_sizes = {}
disk_backing_files = {}

View File

@@ -38,6 +38,7 @@ from nova.db.sqlalchemy.migration import versioning_api as migration_api
from nova import log as logging
from nova import test
LOG = logging.getLogger(__name__)

View File

@@ -29,6 +29,7 @@ from nova import log as logging
from nova import test
from nova.volume import netapp
LOG = logging.getLogger(__name__)