File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import math
15
15
16
- try :
17
- import mmh3
18
- except ImportError :
19
- from .lib import pymmh3 as mmh3
16
+ from .lib import pymmh3 as mmh3
20
17
21
18
22
19
MAX_TRAFFIC_VALUE = 10000
Original file line number Diff line number Diff line change 1
1
jsonschema==3.2.0
2
2
pyrsistent==0.16.0
3
- mmh3==2.5.1
4
3
requests>=2.21
5
4
pyOpenSSL>=19.1.0
6
5
cryptography>=2.8.0
Original file line number Diff line number Diff line change 12
12
# limitations under the License.
13
13
14
14
import json
15
- import mmh3
16
15
import mock
17
16
import random
18
17
19
18
from optimizely import bucketer
20
19
from optimizely import entities
21
20
from optimizely import logger
22
21
from optimizely import optimizely
23
- from optimizely .lib import pymmh3
22
+ from optimizely .lib import pymmh3 as mmh3
24
23
25
24
from . import base
26
25
@@ -215,7 +214,7 @@ def test_hash_values(self):
215
214
216
215
for i in range (10 ):
217
216
random_value = str (random .random ())
218
- self .assertEqual (mmh3 .hash (random_value ), pymmh3 .hash (random_value ))
217
+ self .assertEqual (mmh3 .hash (random_value ), mmh3 .hash (random_value ))
219
218
220
219
221
220
class BucketerWithLoggingTest (base .BaseTest ):
You can’t perform that action at this time.
0 commit comments