mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02:00
cssutils has recently renamed CSSValueList to PropertyValue. Fix resulting breakage in src/calibre/ebooks/oeb/stylizer.py
This commit is contained in:
parent
4a8d33a455
commit
14dc0006d0
1 changed files with 5 additions and 1 deletions
|
|
@ -13,7 +13,11 @@
|
|||
from xml.dom import SyntaxErr as CSSSyntaxError
|
||||
import cssutils
|
||||
from cssutils.css import (CSSStyleRule, CSSPageRule, CSSStyleDeclaration,
|
||||
CSSValueList, CSSFontFaceRule, cssproperties)
|
||||
CSSFontFaceRule, cssproperties)
|
||||
try:
|
||||
from cssutils.css import CSSValueList
|
||||
except ImportError:
|
||||
from cssutils.css import PropertyValue as CSSValueList
|
||||
from cssutils import profile as cssprofiles
|
||||
from lxml import etree
|
||||
from lxml.cssselect import css_to_xpath, ExpressionError, SelectorSyntaxError
|
||||
|
|
|
|||
Loading…
Reference in a new issue