##// END OF EJS Templates
Miscellaneous Python 3 fixes
Thomas Kluyver -
Show More
@@ -242,7 +242,7 b' class Config(dict):'
242
242
243 def __deepcopy__(self, memo):
243 def __deepcopy__(self, memo):
244 import copy
244 import copy
245 return type(self)(copy.deepcopy(self.items()))
245 return type(self)(copy.deepcopy(list(self.items())))
246
246
247 def __getitem__(self, key):
247 def __getitem__(self, key):
248 # We cannot use directly self._is_section_key, because it triggers
248 # We cannot use directly self._is_section_key, because it triggers
@@ -168,7 +168,7 b' class DisplayFormatter(Configurable):'
168 @property
168 @property
169 def format_types(self):
169 def format_types(self):
170 """Return the format types (MIME types) of the active formatters."""
170 """Return the format types (MIME types) of the active formatters."""
171 return self.formatters.keys()
171 return list(self.formatters.keys())
172
172
173
173
174 #-----------------------------------------------------------------------------
174 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now