-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Feb 13, 2009 at 03:41:52PM +0000, MRAB wrote:
> Berend van Berkum wrote:
> >Yes.. tested that and SGMLParser won't let me override __init__, 
> >(SGMLParser vars are uninitialized even with sgmllib.SGMLParser(self) 
> >call).
> 
> OK, so SGMLParser needs to be initialised:
> 
>       def __init__(self):
>               sgmllib.SGMLParser.__init__(self)
>               self.content = ''
>               self.markup = []
>               self.span_stack = []

argh.. forgot about old-style supercall syntax
used sgmllib.SGMLParser(self), did not investigate the error
gonna be ashamed for a while now..

- -- 
 web, http://dotmpe.com                      ()    ASCII Ribbon
 email, berend.van.ber...@gmail.com          /\
 icq, 26727647;  irc, berend/mpe at irc.oftc.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJlsStn70fkTNDJRgRArzdAJ9QhTaIcx0Kgps8rHe0oGnf6qQm+QCeJSh/
+pMOged64wmns1HvoV+u4fA=
=O4QU
-----END PGP SIGNATURE-----
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to