[FIX] _extensions: p3 compatibility (5)
This commit is contained in:
parent
2e58b86fe2
commit
b22590c2da
@ -77,7 +77,7 @@ class Fields(Directive):
|
||||
))
|
||||
)
|
||||
)
|
||||
for k, v in fields.iteritems()
|
||||
for k, v in fields.items()
|
||||
# if there's a whitelist, only display whitelisted fields
|
||||
if not whitelist or k in whitelist
|
||||
# only display if there's a help text
|
||||
|
@ -71,9 +71,9 @@ class BootstrapTranslator(nodes.NodeVisitor, object):
|
||||
tagname = unicode(tagname).lower()
|
||||
|
||||
# extract generic attributes
|
||||
attrs = {name.lower(): value for name, value in attributes.iteritems()}
|
||||
attrs = {name.lower(): value for name, value in attributes.items()}
|
||||
attrs.update(
|
||||
(name, value) for name, value in node.attributes.iteritems()
|
||||
(name, value) for name, value in node.attributes.items()
|
||||
if name.startswith('data-')
|
||||
)
|
||||
|
||||
@ -97,7 +97,7 @@ class BootstrapTranslator(nodes.NodeVisitor, object):
|
||||
prefix=u''.join(prefix),
|
||||
tag=tagname,
|
||||
attrs=u' '.join(u'{}="{}"'.format(name, self.attval(value))
|
||||
for name, value in attrs.iteritems()),
|
||||
for name, value in attrs.items()),
|
||||
postfix=u''.join(postfix),
|
||||
)
|
||||
# only "space characters" SPACE, CHARACTER TABULATION, LINE FEED,
|
||||
|
Loading…
Reference in New Issue
Block a user