parent
0014e65c1d
commit
c2d0c52086
|
@ -120,7 +120,7 @@ class Rest(AbstractNode):
|
|||
return ""
|
||||
link_texts = []
|
||||
# XXX this could check for duplicates and remove them...
|
||||
for link, target in self.links.iteritems():
|
||||
for link, target in self.links.items():
|
||||
link_texts.append(".. _`%s`: %s" % (escape(link), target))
|
||||
return "\n" + "\n".join(link_texts) + "\n\n"
|
||||
|
||||
|
@ -401,7 +401,7 @@ class Directive(Paragraph):
|
|||
txt = super(Directive, self).text()
|
||||
txt = '.. %s::%s' % (self.name, txt[namechunksize + 3:],)
|
||||
options = '\n'.join([' :%s: %s' % (k, v) for (k, v) in
|
||||
self.options.iteritems()])
|
||||
self.options.items()])
|
||||
if options:
|
||||
txt += '\n%s' % (options,)
|
||||
|
||||
|
|
|
@ -441,7 +441,7 @@ def folded_skips(skipped):
|
|||
key = entry.path, entry.lineno, entry.message
|
||||
d.setdefault(key, []).append(event)
|
||||
l = []
|
||||
for key, events in d.iteritems():
|
||||
for key, events in d.items():
|
||||
l.append((len(events),) + key)
|
||||
return l
|
||||
|
||||
|
|
Loading…
Reference in New Issue