Permalink
Browse files

fix python3 tests

  • Loading branch information...
1 parent 2266255 commit 210a24027cb235c7b0574fc640f716cf20b3af6c andy committed Oct 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 redis/client.py
View
@@ -145,7 +145,7 @@ def parse_client(response, **options):
parse = options['parse']
if parse == 'LIST':
clients = []
- for c in response.splitlines():
+ for c in nativestr(response).splitlines():
clients.append(dict([pair.split('=') for pair in c.split(' ')]))
return clients
elif parse == 'KILL':
@@ -637,7 +637,7 @@ def pexpireat(self, name, when):
or a Python datetime object.
"""
if isinstance(when, datetime.datetime):
- ms = when.microsecond / 1000
+ ms = int(when.microsecond / 1000)
when = int(mod_time.mktime(when.timetuple())) * 1000 + ms
return self.execute_command('PEXPIREAT', name, when)

0 comments on commit 210a240

Please sign in to comment.