#NEWLINE# def serialize( self , content_type , link , state ) : #NEWLINE# #INDENT# if self . detect_redirect ( link ) : #NEWLINE# #INDENT# return self . handle_redirect ( link , content_type ) #NEWLINE# #UNINDENT# content = self . get_content ( link , state ) #NEWLINE# response = http . HttpResponse ( content , content_type ) #NEWLINE# return response