diff options
author | John L. Villalovos <openstack.org@sodarock.com> | 2018-04-10 17:29:33 -0700 |
---|---|---|
committer | John L. Villalovos <openstack.org@sodarock.com> | 2018-04-10 17:34:04 -0700 |
commit | 6b91ba21df3f60e8362ef86b90de93e73e317b20 (patch) | |
tree | 0a754eca076fa0334f0eb10fdd9c6b5c714c3ccb /ironic/cmd | |
parent | ca91d4d871bae437da2c6173e7a0aad5c3b44532 (diff) | |
download | ironic-6b91ba21df3f60e8362ef86b90de93e73e317b20.tar.gz |
Resolve pep8 E402 errors and no longer ignore E402
Fix the pep8 E402 (Module level import not at top of file) errors.
For the Alembic files move the definitions of 'revision' and
'down_revision' below the imports. This is now done in Alembic [1]
For other files fix as needed by moving the imports or lines before
the imports.
In a few cases add a "# noqa E402" to whitelist the issue.
[1] https://bitbucket.org/zzzeek/alembic/commits/dc2aae0374b76ccab8494be6e103d84089bc449b
Change-Id: I48c96d5da0cb747b3ca3fceea9b4ffa85a9ebe22
Diffstat (limited to 'ironic/cmd')
-rw-r--r-- | ironic/cmd/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/cmd/__init__.py b/ironic/cmd/__init__.py index 0447011e9..18e85ab18 100644 --- a/ironic/cmd/__init__.py +++ b/ironic/cmd/__init__.py @@ -19,7 +19,7 @@ # concurrency models can cause undefined behavior and potentially API timeouts. import os -os.environ['EVENTLET_NO_GREENDNS'] = 'yes' +os.environ['EVENTLET_NO_GREENDNS'] = 'yes' # noqa E402 import eventlet |