Skip to content

Commit 566df6e

Browse files
author
Matias Melograno
committed
removed commented lines and bare exception linter
1 parent ce299b4 commit 566df6e

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

splitio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
unicode_literals
33

44
from .factories import get_factory # noqa
5-
from .clients import Key # noqa
5+
from .key import Key # noqa
66
from .version import __version__ # noqa
77

88
__all__ = ('api', 'brokers', 'cache', 'clients', 'matchers', 'segments',

splitio/tests/test_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_if_event_flag_is_set_an_exception_is_not_raised(self):
191191
"""Test that if the event flag is set, a TimeoutException is not raised"""
192192
try:
193193
SelfRefreshingBroker(self.some_api_key, config={'ready': 10})
194-
except: # noqa E722
194+
except Exception:
195195
self.fail('An unexpected exception was raised')
196196

197197

splitio/tests/test_input_validator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
# Python 2
99
import mock
1010

11-
# import logging
1211
from unittest import TestCase
13-
# from splitio.tests.utils import MockUtilsMixin
1412
from splitio.brokers import RedisBroker, SelfRefreshingBroker, UWSGIBroker
1513
from splitio.clients import Client
1614
from splitio.treatments import CONTROL

0 commit comments

Comments
 (0)