From 5360db86d94c6303362925627288fa1ad135c86f Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 17 Feb 2018 15:59:18 +0100 Subject: [PATCH] Fix the last instance of "list(dict.keys())" --- scour/scour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scour/scour.py b/scour/scour.py index ebaed2e..1998482 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -1471,7 +1471,7 @@ def _getStyle(node): def _setStyle(node, styleMap): u"""Sets the style attribute of a node to the dictionary ``styleMap``.""" - fixedStyle = ';'.join([prop + ':' + styleMap[prop] for prop in list(styleMap.keys())]) + fixedStyle = ';'.join([prop + ':' + styleMap[prop] for prop in styleMap]) if fixedStyle != '': node.setAttribute('style', fixedStyle) elif node.getAttribute('style'):