def deactivate(self):
        """Remove any builtins which might have been added by add_builtins, or
        restore overwritten ones to their previous values."""
        # Note: must iterate over a static keys() list because we'll be
        # mutating the dict itself
        remove_builtin = self.remove_builtin
        for key in list(self._orig_builtins.keys()):
            remove_builtin(key)
        self._orig_builtins.clear()
        self._builtins_added = False
        try:
            del builtins.__dict__['__IPYTHON__active']
        except __HOLE__:
            pass
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/builtin_trap.py/BuiltinTrap.deactivate