File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1248,12 +1248,17 @@ def __init__(
12481248 ):
12491249 """
12501250 Initializes the requests object.
1251+
1252+ If `requests_lists` is given as argument, assumes they are sorted by request type
1253+ ascending, starting from 0.
12511254 """
12521255 if requests_lists is not None :
12531256 assert len (requests ) == 0 , "requests must be empty if list is provided"
12541257 self .requests_list = []
1255- for requests_list in requests_lists :
1256- self .requests_list .append (requests_list_to_bytes (requests_list ))
1258+ for type , requests_list in enumerate (requests_lists ):
1259+ self .requests_list .append (
1260+ Bytes (bytes ([type ]) + requests_list_to_bytes (requests_list ))
1261+ )
12571262 return
12581263 else :
12591264 lists : Dict [int , List [RequestBase ]] = defaultdict (list )
You can’t perform that action at this time.
0 commit comments