#NEWLINE# def fromfile( filename ) : #NEWLINE# #INDENT# ' Parse patch file. If successful, returns\n      PatchSet() object. Otherwise returns False.\n  ' #NEWLINE# patchset = PatchSet ( ) #NEWLINE# debug ( ( 'reading %s' % filename ) ) #NEWLINE# fp = open ( filename , 'rb' ) #NEWLINE# res = patchset . parse ( fp ) #NEWLINE# fp . close ( ) #NEWLINE# if ( res == True ) : #NEWLINE# #INDENT# return patchset #NEWLINE# #UNINDENT# return False