Skip to content

Commit

Permalink
Minor cleanups (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliabbasrizvi authored Jun 21, 2018
1 parent 4ed4339 commit 6ed11d7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion optimizely/bucketer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
except ImportError:
from .lib import pymmh3 as mmh3

from .helpers import enums

MAX_TRAFFIC_VALUE = 10000
UNSIGNED_MAX_32_BIT_VALUE = 0xFFFFFFFF
Expand Down
5 changes: 0 additions & 5 deletions optimizely/optimizely.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import logging

from . import decision_service
from . import entities
from . import event_builder
Expand Down Expand Up @@ -399,9 +397,6 @@ def is_feature_enabled(self, feature_key, user_id, attributes=None):
if decision.variation.featureEnabled:
self.logger.info('Feature "%s" is enabled for user "%s".' % (feature_key, user_id))
return True
else:
self.logger.info('Feature "%s" is not enabled for user "%s".' % (feature_key, user_id))
return False

self.logger.info('Feature "%s" is not enabled for user "%s".' % (feature_key, user_id))
return False
Expand Down
1 change: 0 additions & 1 deletion tests/test_bucketing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from optimizely import entities
from optimizely import logger
from optimizely import optimizely
from optimizely.helpers import enums
from optimizely.lib import pymmh3

from . import base
Expand Down
2 changes: 0 additions & 2 deletions tests/test_event_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
import unittest

from optimizely import event_builder
from optimizely import exceptions
from optimizely import version
from optimizely.helpers import enums
from . import base


Expand Down
3 changes: 1 addition & 2 deletions tests/test_optimizely.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
from optimizely import optimizely
from optimizely import project_config
from optimizely import version
from optimizely.logger import SimpleLogger
from optimizely.notification_center import NotificationCenter
from optimizely.helpers import enums
from optimizely.notification_center import NotificationCenter
from . import base


Expand Down

0 comments on commit 6ed11d7

Please sign in to comment.