diff options
author | Jacek Konieczny <jajcus@jajcus.net> | 2010-04-04 15:07:53 +0400 |
---|---|---|
committer | Jacek Konieczny <jajcus@jajcus.net> | 2010-04-04 15:07:53 +0400 |
commit | 3518975b0dc8fde6114b00995f06e26594e1b75f (patch) | |
tree | d12f0b04e1d4215bda4f17c95249cd3426023b37 /pyxmpp | |
parent | 4dd039daf5fcc0e88bd1858c8a29eeca598b8f15 (diff) |
- patch to ignore "invalid vcard-temp" namespace warnings from libxml2, by 3.14159. closes #33
Diffstat (limited to 'pyxmpp')
-rw-r--r-- | pyxmpp/xmlextra.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pyxmpp/xmlextra.py b/pyxmpp/xmlextra.py index 5c65163..f4dcccd 100644 --- a/pyxmpp/xmlextra.py +++ b/pyxmpp/xmlextra.py @@ -101,6 +101,17 @@ class StreamHandler: - `descr`: `str`""" raise StreamParseError,descr + def warning(self,desc): + """Called when an warning is encountered in the stream. + + :Parameters: + - `descr`: description of the warning + :Types: + - `descr`: `str`""" + # we know vcard-temp is bad... + if not desc.startswith('xmlns: URI vcard-temp is not absolute'): + print "XML STREAM WARNING:",desc + try: ######################################################################### # C-extension based workarounds for libxml2 limitations |