#NEWLINE# def _lift_sgens( size , fixed_slots , free , s ) : #NEWLINE# #INDENT# a = [ ] #NEWLINE# j = k = 0 #NEWLINE# fd = list ( zip ( fd , free ) ) #NEWLINE# fd = [ y for ( x , y ) in sorted ( fd ) ] #NEWLINE# num_free = len ( free ) #NEWLINE# for i in range ( size ) : #NEWLINE# #INDENT# if ( i in fixed_slots ) : #NEWLINE# #INDENT# a . append ( fd [ k ] ) #NEWLINE# k += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# a . append ( ( s [ j ] + num_free ) ) #NEWLINE# j += 1 #NEWLINE# #UNINDENT# #UNINDENT# return a