Fix the last instance of "list(dict.keys())"

This commit is contained in:
Eduard Braun 2018-02-17 15:59:18 +01:00
parent 2f0b3ea362
commit 5360db86d9

View file

@ -1471,7 +1471,7 @@ def _getStyle(node):
def _setStyle(node, styleMap): def _setStyle(node, styleMap):
u"""Sets the style attribute of a node to the dictionary ``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 != '': if fixedStyle != '':
node.setAttribute('style', fixedStyle) node.setAttribute('style', fixedStyle)
elif node.getAttribute('style'): elif node.getAttribute('style'):