@@ -819,30 +819,31 @@ def string_keys_to_dict(key_string, callback):
819819 lambda r , ** kwargs : r ,
820820 ),
821821 ** string_keys_to_dict ("XREAD XREADGROUP" , parse_xread_resp3 ),
822- "ACL LOG" : lambda r : [
823- {str_if_bytes (key ): str_if_bytes (value ) for key , value in x .items ()} for x in r
824- ]
825- if isinstance (r , list )
826- else bool_ok (r ),
822+ "ACL LOG" : lambda r : (
823+ [
824+ {str_if_bytes (key ): str_if_bytes (value ) for key , value in x .items ()}
825+ for x in r
826+ ]
827+ if isinstance (r , list )
828+ else bool_ok (r )
829+ ),
827830 "COMMAND" : parse_command_resp3 ,
828831 "CONFIG GET" : lambda r : {
829- str_if_bytes (key )
830- if key is not None
831- else None : str_if_bytes (value )
832- if value is not None
833- else None
832+ str_if_bytes (key ) if key is not None else None : (
833+ str_if_bytes (value ) if value is not None else None
834+ )
834835 for key , value in r .items ()
835836 },
836837 "MEMORY STATS" : lambda r : {str_if_bytes (key ): value for key , value in r .items ()},
837838 "SENTINEL MASTER" : parse_sentinel_state_resp3 ,
838839 "SENTINEL MASTERS" : parse_sentinel_masters_resp3 ,
839840 "SENTINEL SENTINELS" : parse_sentinel_slaves_and_sentinels_resp3 ,
840841 "SENTINEL SLAVES" : parse_sentinel_slaves_and_sentinels_resp3 ,
841- "STRALGO" : lambda r , ** options : {
842- str_if_bytes (key ): str_if_bytes (value ) for key , value in r .items ()
843- }
844- if isinstance ( r , dict )
845- else str_if_bytes ( r ),
842+ "STRALGO" : lambda r , ** options : (
843+ { str_if_bytes (key ): str_if_bytes (value ) for key , value in r .items ()}
844+ if isinstance ( r , dict )
845+ else str_if_bytes ( r )
846+ ),
846847 "XINFO CONSUMERS" : lambda r : [
847848 {str_if_bytes (key ): value for key , value in x .items ()} for x in r
848849 ],
0 commit comments