diff options
author | andymccurdy <andy@andymccurdy.com> | 2010-02-17 01:11:01 -0800 |
---|---|---|
committer | andymccurdy <andy@andymccurdy.com> | 2010-02-17 01:11:01 -0800 |
commit | 18f0e28764b98837d063a5f4acaec184afe123ee (patch) | |
tree | 91a6eee4e09665e0538eaee00cd4f9165a06702e /redis/client.py | |
parent | 223acf1fdcdca8bc6551919ca39c2fbeb089bd75 (diff) | |
download | redis-py-18f0e28764b98837d063a5f4acaec184afe123ee.tar.gz |
removing the decode() hook from earlier. it's really more effective to serialize/deserialize the data at a higher level.
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/redis/client.py b/redis/client.py index 989d30b..e3d217a 100644 --- a/redis/client.py +++ b/redis/client.py @@ -267,8 +267,6 @@ class Redis(object): response = self._parse_response(command_name) if command_name in self.RESPONSE_CALLBACKS: return self.RESPONSE_CALLBACKS[command_name](response, **options) - elif isinstance(response, str): - return self.decode(response) return response def encode(self, value): @@ -280,10 +278,6 @@ class Redis(object): # not a string or unicode, attempt to convert to a string return str(value) - def decode(self, value): - "Provides a hook for subclasses to add deserialization logic" - return value - def format_inline(self, *args, **options): "Formats a request with the inline protocol" cmd = '%s\r\n' % ' '.join([self.encode(a) for a in args]) |