<s> def split_by_position ( linked_promotions , context ) : <EOL> """<STR_LIT>""" <EOL> for linked_promotion in linked_promotions : <EOL> promotion = linked_promotion . content_object <EOL> if not promotion : <EOL> continue <EOL> key = '<STR_LIT>' % linked_promotion . position . lower ( ) <EOL> if key not in context : <EOL> context [ key ] = [ ] <EOL> context [ key ] . append ( promotion ) </s>
