#NEWLINE# def _encode_multi_selector( self , selector ) : #NEWLINE# #INDENT# base_selector = { #NEWLINE# #INDENT# 'file_format_version' : 1.1 , #NEWLINE# 'duration' : self . _encode_duration ( selector . duration ) , #NEWLINE# 'metrics' : self . metrics , #NEWLINE# 'ip_translation' : self . _encode_ip_translation ( selector . ip_translation_spec ) , #NEWLINE# 'start_times' : self . _encode_start_times ( selector . start_times ) , #NEWLINE# #UNINDENT# } #NEWLINE# if ( selector . sites != [ None ] ) : #NEWLINE# #INDENT# base_selector [ 'sites' ] = selector . sites #NEWLINE# #UNINDENT# if ( selector . client_countries != [ None ] ) : #NEWLINE# #INDENT# base_selector [ 'client_countries' ] = selector . client_countries #NEWLINE# #UNINDENT# if ( selector . client_providers != [ None ] ) : #NEWLINE# #INDENT# base_selector [ 'client_providers' ] = selector . client_providers #NEWLINE# #UNINDENT# return base_selector