def _table_needs_update(self, table, temp):
        update_table = True
        if not os.path.exists(self.table_files_path):
            os.makedirs(self.table_files_path)
        try:
            current_table = open("%s/%s" % (self.table_files_path, table), "r+")
            if self._tables_match(current_table, temp):
                logger.debug("%s table matches current...skipping" % table)
                update_table = False
        except __HOLE__:
            current_table = open("%s/%s" % (self.table_files_path, table), "w")
        finally:
            current_table.close()
            return (current_table, update_table)
dataset/ETHPy150Open facebookarchive/neti/neti/iptables.py/IPtables._table_needs_update