We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8083505 commit 2d0c9baCopy full SHA for 2d0c9ba
redis/commands/helpers.py
@@ -72,26 +72,6 @@ def parse_to_list(response):
72
return res
73
74
75
-def parse_list_to_dict(response):
76
- res = {}
77
- for i in range(0, len(response), 2):
78
- if isinstance(response[i], list):
79
- res["Child iterators"].append(parse_list_to_dict(response[i]))
80
- try:
81
- if isinstance(response[i + 1], list):
82
- res["Child iterators"].append(parse_list_to_dict(response[i + 1]))
83
- except IndexError:
84
- pass
85
- elif isinstance(response[i + 1], list):
86
- res["Child iterators"] = [parse_list_to_dict(response[i + 1])]
87
- else:
88
89
- res[response[i]] = float(response[i + 1])
90
- except (TypeError, ValueError):
91
- res[response[i]] = response[i + 1]
92
- return res
93
-
94
95
def random_string(length=10):
96
"""
97
Returns a random N character long string.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments