def popitem(self):
        """Similar to :meth:`dict.popitem`."""

        try:
            k, v = next(iteritems(self))
        except __HOLE__:
            raise KeyError('Header is empty')
        del self[k]
        return k, v
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/header.py/Header.popitem