Christof Hoeke | 14 Jul 22:33

ANN: cssutils 0.9.5rc2

what is it
----------
A Python package to parse and build CSS Cascading Style Sheets. (Not a 
renderer  though!)

main changes
------------
There has been a **major change** in this release which may affect your 
program and may require some rewriting... There is a workaround (see 
below) but please take care. The second major change in this release is 
a quite noticable performance improvement which was more or less a side 
effect of a bugfix...

0.9.5rc2 080714
     - **API CHANGE/BUGFIX (major)**:

         Upto 0.9.5rc1 any sheet resulting from parsing via any 
``parse*`` function or ``CSSParser(raiseExceptions=False)`` (which also 
was and is the default) resulted in the library simply logging any later 
exceptions and not raising them. Until now the global setting of 
``cssutils.log.raiseExceptions=True`` (the default) was overwritten with 
the value of the CSSParser ``raiseExceptions`` setting which normally is 
``False`` any time a ``cssutils.parse*`` function or 
``CSSParser.parse*`` method was used. 0.9.5rc2 fixes this.

         until 0.9.5rc1::

             >>> # parsing does not raise errors
             >>> s = cssutils.parseString('$') # empty but CSSStyleSheet 
object
(Continue reading)


Gmane