equal
deleted
inserted
replaced
159 if repo: |
159 if repo: |
160 sections = util.sortdict(DEFAULT_SECTIONS) |
160 sections = util.sortdict(DEFAULT_SECTIONS) |
161 custom_sections = getcustomadmonitions(repo) |
161 custom_sections = getcustomadmonitions(repo) |
162 if custom_sections: |
162 if custom_sections: |
163 sections.update(custom_sections) |
163 sections.update(custom_sections) |
164 self._sections = list(sections.iteritems()) |
164 self._sections = list(pycompat.iteritems(sections)) |
165 else: |
165 else: |
166 self._sections = list(DEFAULT_SECTIONS) |
166 self._sections = list(DEFAULT_SECTIONS) |
167 |
167 |
168 def __iter__(self): |
168 def __iter__(self): |
169 return iter(self._sections) |
169 return iter(self._sections) |