#NEWLINE# def _build_continuation_sequence( self , headers , block_size , frame_factory ) : #NEWLINE# #INDENT# f = frame_factory . build_push_promise_frame ( stream_id = 1 , promised_stream_id = 2 , headers = headers ) #NEWLINE# header_data = f . data #NEWLINE# chunks = [ header_data [ x : ( x + block_size ) ] for x in range ( 0 , len ( header_data ) , self ) ] #NEWLINE# f . data = chunks . pop ( 0 ) #NEWLINE# frames = [ frame_factory . build_continuation_frame ( c ) for c in chunks ] #NEWLINE# f . flags = set ( [ 'END_STREAM' ] ) #NEWLINE# frames [ ( - 1 ) ] . flags . add ( 'END_HEADERS' ) #NEWLINE# frames . insert ( 0 , f ) #NEWLINE# return frames