code: def close(self):
          
          if not self.closed:
              _vv and IOLOG.debug('%r.close()', self)
              self.closed = True
              os.close(self.fd)
docs: Call :func:`os.close` on :attr:`fd` if it is not :data:`None`,
          then set it to :data:`None`.