mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 21:15:26 +01:00
Micro-optimization
This commit is contained in:
parent
a496b95840
commit
ec8780bdff
1 changed files with 1 additions and 1 deletions
|
|
@ -2669,7 +2669,7 @@ def processEndTag(self, token):
|
|||
}
|
||||
|
||||
def adjust_attributes(token, replacements):
|
||||
if frozenset(token['data']) & frozenset(replacements):
|
||||
if token['data'].viewkeys() & replacements.viewkeys():
|
||||
token['data'] = OrderedDict(
|
||||
(replacements.get(k, k), v) for k, v in token['data'].iteritems())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue