def _copy_context(self, context):
        result = {}
        for name, value in context.items():
            if value is not None:
                result[name] = value.clone_traits()
            else:
                result[name] = None

        return result
Creates a copy of a *context* dictionary.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/ui_modal.py/_ModalDialog._copy_context