diff --git a/IPython/config/loader.py b/IPython/config/loader.py index 5f16b4a..efc61e0 100644 --- a/IPython/config/loader.py +++ b/IPython/config/loader.py @@ -242,7 +242,7 @@ class Config(dict): def __deepcopy__(self, memo): import copy - return type(self)(copy.deepcopy(self.items())) + return type(self)(copy.deepcopy(list(self.items()))) def __getitem__(self, key): # We cannot use directly self._is_section_key, because it triggers diff --git a/IPython/core/formatters.py b/IPython/core/formatters.py index abb3cd2..895b419 100644 --- a/IPython/core/formatters.py +++ b/IPython/core/formatters.py @@ -168,7 +168,7 @@ class DisplayFormatter(Configurable): @property def format_types(self): """Return the format types (MIME types) of the active formatters.""" - return self.formatters.keys() + return list(self.formatters.keys()) #-----------------------------------------------------------------------------