#NEWLINE# def filetype( self , fname = None ) : #NEWLINE# #INDENT# " checks file type of file, returning:\n        'escan'  for  Epics Scan\n        None     otherwise\n        " #NEWLINE# try : #NEWLINE# #INDENT# u = open ( fname , 'r' ) #NEWLINE# t = u . readline ( ) #NEWLINE# u . close ( ) #NEWLINE# if ( 'Epics Scan' in self ) : #NEWLINE# #INDENT# return 'escan' #NEWLINE# #UNINDENT# #UNINDENT# except IOError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return None