Fix the last instance of "list(dict.keys())"
This commit is contained in:
parent
2f0b3ea362
commit
5360db86d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue