#NEWLINE# def _category_name( self , category_id , pop_id , pop_id_search = False ) : #NEWLINE# #INDENT# i = 0 #NEWLINE# category_name = None #NEWLINE# for ( name , category ) in jobs . app_store_codes . CATEGORIES . items ( ) : #NEWLINE# #INDENT# if pop_id_search : #NEWLINE# #INDENT# if ( ( category [ 'genreId' ] == category_id ) and ( category [ 'popId' ] == pop_id ) ) : #NEWLINE# #INDENT# category_name = name #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( category [ 'genreId' ] == category_id ) : #NEWLINE# #INDENT# i += 1 #NEWLINE# category_name = name #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( i > 1 ) : #NEWLINE# #INDENT# return self . _category_name ( category_id , pop_id , True ) #NEWLINE# #UNINDENT# return category_name