'If C{self._fd} is unclosed, raise a warning.'

def __del__(self):

    if self._fd:
        if (not _PY3):
            ResourceWarning = Warning
        warnings.warn(('FD    %s    was    not    closed!' % (self._fd,)), ResourceWarning)
        self.close()
