def _process_file(self, path):
        try:
            f = open(path)
            for line in f:
                self._process_line(line)

            os.remove(path)
        except IOError, ex:
            self.log.error("Could not open file `{path}': {error}".format(
                path=path, error=ex.strerror))
Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/148 where
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/nagiosperfdata/nagiosperfdata.py/NagiosPerfdataCollector._process_file--crossover with--dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_checksum.py/TestChecksumFunctions.test_open_update_mode_preserve_checksum