def filetype(self,fname=None):
        """ checks file type of file, returning:
        'escan'  for  Epics Scan
        None     otherwise
        """
        try:
            u = open(fname,'r')
            t = u.readline()
            u.close()
            if 'Epics Scan' in t: return 'escan'

        except __HOLE__:
            pass

        return None
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/gse_escan.py/EscanData.filetype