Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

fixes #93 #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.pyc
build/*
dist/*
env/*
*/dist/*
*.egg
*.egg-info
Expand Down
4 changes: 3 additions & 1 deletion tornadoredis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ def to_list(source):
reply_zset),
string_keys_to_dict('ZSCORE ZINCRBY',
reply_number),
string_keys_to_dict('SCAN HSCAN SSCAN',
string_keys_to_dict('SCAN SSCAN',
reply_map(reply_int, reply_set)),
string_keys_to_dict('HSCAN',
reply_map(reply_int, reply_dict_from_pairs)),
{'HMGET': reply_hmget,
'PING': make_reply_assert_msg('PONG'),
'LASTSAVE': reply_datetime,
Expand Down
2 changes: 1 addition & 1 deletion tornadoredis/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ def test_hscan(self):
self.assertEqual(len(res), 2)
cursor, keys = res
self.assertTrue(isinstance(cursor, int))
self.assertTrue(isinstance(keys, set))
self.assertTrue(isinstance(keys, dict))
all_keys.update(keys)
for i in range(SCAN_BUF_SIZE):
self.assertTrue('test{0}'.format(i) in all_keys)
Expand Down