diff options
author | Sushil Kumar <sushil.kumar2@globallogic.com> | 2013-12-28 18:29:14 +0000 |
---|---|---|
committer | Sushil Kumar <sushil.kumar2@globallogic.com> | 2014-01-08 10:43:42 +0000 |
commit | 167c0ceb7a49ba3a687883eff86074d15b917493 (patch) | |
tree | f7b508df1918e51a64c1499bd649b4318898f6d5 /trove/common/rpc | |
parent | 84dbe87c22eb45934e57eef36bd88b350fc141f8 (diff) | |
download | trove-167c0ceb7a49ba3a687883eff86074d15b917493.tar.gz |
Enabled F403 flake8 rule
Reasons:
- F403 is disabled.
- code contains "import *" statements.
Changes:
- Updates tox.ini to enable F403 rules.
- Updates code for F403 violation.
Change-Id: If932a910c073ae7bffb74908495f35dbc4f4d1f9
Closes-Bug: #1264724
Diffstat (limited to 'trove/common/rpc')
-rw-r--r-- | trove/common/rpc/impl_fake.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/trove/common/rpc/impl_fake.py b/trove/common/rpc/impl_fake.py index f153a023..0b5b0fe8 100644 --- a/trove/common/rpc/impl_fake.py +++ b/trove/common/rpc/impl_fake.py @@ -19,7 +19,10 @@ Standard openstack.common.rpc.impl_fake with nonblocking cast """ -from trove.openstack.common.rpc.impl_fake import * +import eventlet + +from trove.openstack.common.rpc.impl_fake import cast +from trove.openstack.common.rpc.impl_fake import create_connection original_cast = cast @@ -30,3 +33,7 @@ def non_blocking_cast(*args, **kwargs): cast = non_blocking_cast + + +# Asserting create_connection, workaround for pep8-F401 for unused import. +assert create_connection |