'Get the last modified datetime. Broken out for testing.'

def _get_file_timestamp(self, filename):

    try:
        return os.path.getmtime(filename)
    except os.error:
        LOG.exception('Could    not    stat    scheduler    options    file    %(filename)s.', {'filename': filename})
        raise
