#NEWLINE# def _get_status( self , filename ) : #NEWLINE# #INDENT# if path . isfile ( filename ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# f = open ( filename , 'r' ) #NEWLINE# l = f . readline ( ) #NEWLINE# f . close ( ) #NEWLINE# return int ( l ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# print_ ( ( "Can't get status from '%s'" % filename ) ) #NEWLINE# print_ ( e ) #NEWLINE# print_ ( '\n' ) #NEWLINE# #UNINDENT# #UNINDENT# return None