We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d8c7b commit e87fbb8Copy full SHA for e87fbb8
splitio/hashfns.py
@@ -10,15 +10,6 @@
10
if (_sys.version_info > (3, 0)):
11
def xrange(a, b, c):
12
return range(a, b, c)
13
-
14
- def xencode(x):
15
- if isinstance(x, bytes) or isinstance(x, bytearray):
16
- return x
17
- else:
18
- return x.encode()
19
-else:
20
21
22
del _sys
23
24
@@ -27,7 +18,7 @@ def murmur32_py(key, seed=0x0):
27
Pure python implementation of murmur32 hash
28
"""
29
30
- key = bytearray(key, 'utf-8') # bytearray(xencode(key), 'utf-8')
+ key = bytearray(key, 'utf-8')
31
32
def fmix(h):
33
h ^= h >> 16
0 commit comments