Package: python-wbxml Version: 0.1-1 Severity: grave Tags: patch Justification: renders package unusable
Currently python-wbxml is unusable, all calls to pywbxml cause an exception because WBXMLParseError is not a subclass of BaseException: >>> d = file("syncml-014.xml").read() >>> pywbxml.xml2wbxml(d) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pywbxml.pyx", line 64, in pywbxml.xml2wbxml TypeError: raise: exception class must be a subclass of BaseException The fix is very simple, see attached patch. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-wbxml depends on: ii libc6 2.7-16 GNU C Library: Shared libraries ii libwbxml2-0 0.9.2-6 WBXML parsing and encoding library ii libxml2 2.6.32.dfsg-4 GNOME XML library ii python 2.5.2-3 An interactive high-level object-o python-wbxml recommends no packages. python-wbxml suggests no packages. -- no debconf information
diff -urN pywbxml-0.1.orig/src/pywbxml.pyx pywbxml-0.1/src/pywbxml.pyx --- pywbxml-0.1.orig/src/pywbxml.pyx 2006-07-28 02:51:57.000000000 +0200 +++ pywbxml-0.1/src/pywbxml.pyx 2008-11-07 10:41:29.000000000 +0100 @@ -14,7 +14,7 @@ object PyString_FromStringAndSize(char *s, int len) int PyString_AsStringAndSize(object obj, char **buffer, int *length) -class WBXMLParseError: +class WBXMLParseError(Exception): def __init__(self, code): self.code = code self.description = <char *> wbxml_errors_string(code)