From 3f404952db49174e1531eef054f5bd2c1d708816 Mon Sep 17 00:00:00 2001 From: HAMANO Tsukasa Date: Tue, 26 Jan 2016 23:46:01 +0900 Subject: [PATCH] accept binary key --- riak/riak_object.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/riak/riak_object.py b/riak/riak_object.py index ab7dd375..dd7558a1 100644 --- a/riak/riak_object.py +++ b/riak/riak_object.py @@ -102,12 +102,6 @@ def __init__(self, client, bucket, key=None): is generated by the server when :func:`store` is called. :type key: string """ - if PY2: - try: - if isinstance(key, string_types): - key = key.encode('ascii') - except UnicodeError: - raise TypeError('Unicode keys are not supported.') if key is not None and len(key) == 0: raise ValueError('Key name must either be "None"'