reformatting indentation

This commit is contained in:
Peter Bengtsson 2015-09-27 21:48:42 -07:00
parent b65fa6ebbe
commit cb490b122d
1 changed files with 7 additions and 3 deletions

View File

@ -11,9 +11,13 @@ def csstext_to_pairs(csstext):
# The lock is required to avoid ``cssutils`` concurrency
# issues documented in issue #65
with csstext_to_pairs._lock:
return sorted([(prop.name.strip(), prop.propertyValue.cssText.strip())
for prop in cssutils.parseStyle(csstext)],
key=itemgetter(0))
return sorted(
[
(prop.name.strip(), prop.propertyValue.cssText.strip())
for prop in cssutils.parseStyle(csstext)
],
key=itemgetter(0)
)
csstext_to_pairs._lock = threading.RLock()