#NEWLINE# def append( self , line ) : #NEWLINE# #INDENT# 'Append the line to hunk, and keep track of source/target lines.' #NEWLINE# super ( Hunk , self ) . append ( line ) #NEWLINE# s = str ( line ) #NEWLINE# if line . is_added : #NEWLINE# #INDENT# self . added += 1 #NEWLINE# self . target . append ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if line . is_removed : #NEWLINE# #INDENT# self . removed += 1 #NEWLINE# self . source . append ( s ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if line . is_context : #NEWLINE# #INDENT# self . target . append ( s ) #NEWLINE# self . source . append ( s )