pep8 fixes

This commit is contained in:
Peter Bengtsson 2016-01-13 13:00:05 -05:00
parent 8d7813a408
commit 95b799c6ce
1 changed files with 4 additions and 2 deletions

View File

@ -548,8 +548,10 @@ class Premailer(object):
attributes['align'] = value.strip()
elif key == 'vertical-align':
attributes['valign'] = value.strip()
elif ((key == 'background-color')
and ('transparent' not in value.lower())):
elif (
key == 'background-color' and
'transparent' not in value.lower()
):
# Only add the 'bgcolor' attribute if the value does not
# contain the word "transparent"; before we add it possibly
# correct the 3-digit color code to its 6-digit equivalent