#NEWLINE# def update_feed( self , feed ) : #NEWLINE# #INDENT# with feed . lock : #NEWLINE# #INDENT# d = feedparser . parse ( feed . url , etag = feed . etag , modified = feed . modified ) #NEWLINE# if ( ( 'status' not in d ) or ( d . status != 304 ) ) : #NEWLINE# #INDENT# if ( 'etag' in d ) : #NEWLINE# #INDENT# feed . etag = d . etag #NEWLINE# #UNINDENT# if ( 'modified' in d ) : #NEWLINE# #INDENT# feed . modified = d . modified #NEWLINE# #UNINDENT# feed . data = d . feed #NEWLINE# feed . entries = initial . entries #NEWLINE# feed . last_update = time . time ( ) #NEWLINE# #UNINDENT# ( initial , feed . initial ) = ( feed . initial , False ) #NEWLINE# #UNINDENT# self . announce_feed ( feed , initial )