diff options
author | esberglu <esberglu@us.ibm.com> | 2018-02-13 10:29:58 -0600 |
---|---|---|
committer | Eric Berglund <esberglu@us.ibm.com> | 2018-02-26 14:32:22 +0000 |
commit | b5f38fb40a9acf9f8e922e64727cb81c53e6ac7c (patch) | |
tree | 1c3d493100ac442aa68c6dd9de8f1e731504cc5b /nova/service.py | |
parent | fba4161f71e47e4155e7f9a1f0d3a41b8107cef5 (diff) | |
download | nova-b5f38fb40a9acf9f8e922e64727cb81c53e6ac7c.tar.gz |
Add check for redundant import aliases
This adds a pep8 function that will check for redundant import aliases.
Any imports of the forms below will not be allowed.
from x import y as y
import x as x
import x.y as y
Change-Id: Iff90f0172d97bd1d49d54c811a70c8af11776da4
Diffstat (limited to 'nova/service.py')
-rw-r--r-- | nova/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/service.py b/nova/service.py index a04a2e96d5..ffab3952bf 100644 --- a/nova/service.py +++ b/nova/service.py @@ -96,7 +96,7 @@ def setup_profiler(binary, host): def assert_eventlet_uses_monotonic_clock(): - import eventlet.hubs as hubs + from eventlet import hubs import monotonic hub = hubs.get_hub() |