#NEWLINE# def _reqs_diff( self ) : #NEWLINE# #INDENT# if ( not hasattr ( self , '_old_reqs' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# with codecs . open ( self . _save_path , 'rb' , 'utf-8' ) as f : #NEWLINE# #INDENT# new_reqs = f . readlines ( ) #NEWLINE# #UNINDENT# ( is_diff , diffs ) = lines_diff ( self . _old_reqs , new_reqs ) #NEWLINE# msg = 'Requirements file has been covered, ' #NEWLINE# if f : #NEWLINE# #INDENT# msg += 'there is the difference:' #NEWLINE# print ( '{0}\n{1}' . format ( Color . YELLOW ( msg ) , '' . join ( diffs ) ) , end = '' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg += 'no difference.' #NEWLINE# print ( Color . YELLOW ( msg ) )