##// END OF EJS Templates
config: make config.items() return a copy...
Martin von Zweigbergk -
r32319:6a773d30 default
parent child Browse files
Show More
@@ -68,7 +68,7 b' class config(object):'
68 def sections(self):
68 def sections(self):
69 return sorted(self._data.keys())
69 return sorted(self._data.keys())
70 def items(self, section):
70 def items(self, section):
71 return self._data.get(section, {}).items()
71 return list(self._data.get(section, {}).iteritems())
72 def set(self, section, item, value, source=""):
72 def set(self, section, item, value, source=""):
73 if pycompat.ispy3:
73 if pycompat.ispy3:
74 assert not isinstance(value, str), (
74 assert not isinstance(value, str), (
General Comments 0
You need to be logged in to leave comments. Login now