Skip to content

Commit

Permalink
Merge pull request #314 from zuhao/patch-1
Browse files Browse the repository at this point in the history
Convert response from bytes to str for Python 3 compatibility
  • Loading branch information
Andy McCurdy committed Jan 21, 2013
2 parents 3471b1d + 932f32d commit 568a283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/client.py
Expand Up @@ -216,9 +216,9 @@ class StrictRedis(object):
string_keys_to_dict('ZRANK ZREVRANK', int_or_none),
{
'BGREWRITEAOF': (
lambda r: r == 'Background rewriting of AOF file started'
lambda r: nativestr(r) == 'Background rewriting of AOF file started'
),
'BGSAVE': lambda r: r == 'Background saving started',
'BGSAVE': lambda r: nativestr(r) == 'Background saving started',
'BRPOPLPUSH': lambda r: r and r or None,
'CLIENT': parse_client,
'CONFIG': parse_config,
Expand Down

0 comments on commit 568a283

Please sign in to comment.