Skip to content

Commit e87fbb8

Browse files
committed
removed old code
1 parent 13d8c7b commit e87fbb8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

splitio/hashfns.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@
1010
if (_sys.version_info > (3, 0)):
1111
def xrange(a, b, c):
1212
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-
def xencode(x):
21-
return x
2213
del _sys
2314

2415

@@ -27,7 +18,7 @@ def murmur32_py(key, seed=0x0):
2718
Pure python implementation of murmur32 hash
2819
"""
2920

30-
key = bytearray(key, 'utf-8') # bytearray(xencode(key), 'utf-8')
21+
key = bytearray(key, 'utf-8')
3122

3223
def fmix(h):
3324
h ^= h >> 16

0 commit comments

Comments
 (0)