Changeset 2590:7b6bba35f3a0 in livinglogic.python.xist for test/test_parse.py

Show
Ignore:
Timestamp:
09/22/06 08:54:55 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

htmlspecials.pixel() now no longer uses colored pixels, instead color is
done via CSS. The URL for the one remaining transparent pixel can now be
specified via src (either as an XML attribute or via the converter context).

Rename attrs methods with() and without() to withnames() and withoutnames()
(for Python 2.5 compatibility).

Use elinks instead of w3m for asText() and move/rename this method to a
function ll.xist.ns.html.astext().

Try to make XIST independent from PyXML (however PyXML is still required
for parsing via expat and for dtd2xsc.py (because this requires xmlproc)).

Remove the long dperecated method withSep().

Use Py_ssize_t in the C source where appropriate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_parse.py

    r2439 r2590  
    22# -*- coding: iso-8859-1 -*- 
    33 
    4 ## Copyright 1999-2005 by LivingLogic AG, Bayreuth/Germany. 
    5 ## Copyright 1999-2005 by Walter Dörwald 
     4## Copyright 1999-2006 by LivingLogic AG, Bayreuth/Germany. 
     5## Copyright 1999-2006 by Walter Dörwald 
    66## 
    77## All Rights Reserved 
     
    1313 
    1414import py.test 
    15 from xml.sax import saxlib 
     15 
     16from xml import sax 
    1617from xml.parsers import expat 
    1718 
     
    3031    except exception: 
    3132        pass 
    32     except saxlib.SAXParseException, exc: 
     33    except sax.SAXParseException, exc: 
    3334        realexc = exc.getException() 
    3435        assert isinstance(realexc, exception)