#NEWLINE# def ReadVersion( self ) : #NEWLINE# #INDENT# 'Reads the version from the script file.\n\n    Returns:\n      A boolean to indicate the version was read from the file.\n    ' #NEWLINE# with open ( self . _path , 'rb' ) as file_object : #NEWLINE# #INDENT# for line in file_object . readlines ( ) : #NEWLINE# #INDENT# line = line . strip ( ) #NEWLINE# if line . startswith ( b'# Version: ' ) : #NEWLINE# #INDENT# ( _ , _ , version ) = line . rpartition ( b'# Version: ' ) #NEWLINE# self . version = version . decode ( 'ascii' ) #NEWLINE# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return False