Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pyxmpp
diff options
context:
space:
mode:
authorJacek Konieczny <jajcus@jajcus.net>2010-04-04 15:07:53 +0400
committerJacek Konieczny <jajcus@jajcus.net>2010-04-04 15:07:53 +0400
commit3518975b0dc8fde6114b00995f06e26594e1b75f (patch)
treed12f0b04e1d4215bda4f17c95249cd3426023b37 /pyxmpp
parent4dd039daf5fcc0e88bd1858c8a29eeca598b8f15 (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.py11
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