#NEWLINE# def return_ok_port( self , cookie , request ) : #NEWLINE# #INDENT# if cookie . port : #NEWLINE# #INDENT# req_port = request_port ( request ) #NEWLINE# if ( req_port is None ) : #NEWLINE# #INDENT# req_port = '80' #NEWLINE# #UNINDENT# for p in cookie . port . split ( ',' ) : #NEWLINE# #INDENT# if ( p == req_port ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# _debug ( '   request port %s does not match cookie port %s' , req_port , p . port ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# return True