8000 [FIX] _extensions: p3 compatibility (5) · RBSbalbin/documentation-user@b22590c · GitHub
[go: up one dir, main page]

Skip to content

Commit b22590c

Browse files
committed
[FIX] _extensions: p3 compatibility (5)
1 parent 2e58b86 commit b22590c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_extensions/demo_link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def run(self):
7777
))
7878
)
7979
)
80-
for k, v in fields.iteritems()
80+
for k, v in fields.items()
8181
# if there's a whitelist, only display whitelisted fields
8282
if not whitelist or k in whitelist
8383
# only display if there's a help text

_extensions/odoo/translator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def starttag(self, node, tagname, **attributes):
7171
tagname = unicode(tagname).lower()
7272

7373
# extract generic attributes
74-
attrs = {name.lower(): value for name, value in attributes.iteritems()}
74+
attrs = {name.lower(): value for name, value in attributes.items()}
7575
attrs.update(
76-
(name, value) for name, value in node.attributes.iteritems()
76+
(name, value) for name, value in node.attributes.items()
7777
if name.startswith('data-')
7878
)
7979

@@ -97,7 +97,7 @@ def starttag(self, node, tagname, **attributes):
9797
prefix=u''.join(prefix),
9898
tag=tagname,
9999
attrs=u' '.join(u'{}="{}"'.format(name, self.attval(value))
100-
for name, value in attrs.iteritems()),
100+
for name, value in attrs.items()),
101101
postfix=u''.join(postfix),
102102
)
103103
# only "space characters" SPACE, CHARACTER TABULATION, LINE FEED,

0 commit comments

Comments
 (0)
0