##// END OF EJS Templates
ui.py: make walkconfig use configitems...
Alexis S. L. Carvalho -
r3342:4eeb79b4 default
parent child Browse files
Show More
@@ -142,15 +142,13 b' class ui(object):'
142 142 for (section, name), value in self.overlay.iteritems():
143 143 yield section, name, value
144 144 seen[section, name] = 1
145 for section in self.cdata.sections():
146 try:
147 for name, value in self.cdata.items(section):
148 if (section, name) in seen: continue
149 yield section, name, value.replace('\n', '\\n')
150 seen[section, name] = 1
151 except ConfigParser.InterpolationError, inst:
152 raise util.Abort(_("Error in configuration section [%s]:\n%s")
153 % (section, inst))
145 sections = self.cdata.sections()
146 sections.sort()
147 for section in sections:
148 for name, value in self.configitems(section):
149 if (section, name) in seen: continue
150 yield section, name, value.replace('\n', '\\n')
151 seen[section, name] = 1
154 152 if self.parentui is not None:
155 153 for parent in self.parentui.walkconfig(seen):
156 154 yield parent
General Comments 0
You need to be logged in to leave comments. Login now