#NEWLINE# def read_manifest( self ) : #NEWLINE# #INDENT# "Read the manifest file (named by 'self.manifest') and use it to\n        fill in 'self.filelist', the list of files to include in the source\n        distribution.\n        " #NEWLINE# log . info ( "reading manifest file '%s'" , self . manifest ) #NEWLINE# manifest = open ( self . manifest , 'rbU' ) #NEWLINE# for line in manifest : #NEWLINE# #INDENT# if ( sys . version_info >= ( 3 , ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# line = line . decode ( 'UTF-8' ) #NEWLINE# #UNINDENT# except UnicodeDecodeError : #NEWLINE# #INDENT# log . warn ( ( '%r not UTF-8 decodable -- skipping' % line ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# line = line . strip ( ) #NEWLINE# if ( line . startswith ( '#' ) or ( not line ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . filelist . append ( line ) #NEWLINE# #UNINDENT# manifest . close ( )