The Python wrapper for libxml2 still outputs *some* errors to stdout.

The relevant code can be seen in GNOME's CVS here:

  http://cvs.gnome.org/viewcvs/libxml2/python/libxml.py?rev=1.36&view=markup

Here's a diff to make it stop sending errors to stdout:

--- /home/nferrier/src/libxml2-2.6.22/python/libxml.py~ 2005-04-28 
10:11:05.000000000 +0100
+++ /home/nferrier/src/libxml2-2.6.22/python/libxml.py  2005-10-27 
15:01:05.577715792 +0100
@@ -211,7 +211,9 @@
         pass
 
     def warning(self, msg):
-        print msg
+        # print msg
+        pass
+
 
     def error(self, msg):
         raise parserError(msg)



However, I don't think that's a very good solution... the error should
probably go _somewhere_.


Nic Ferrier
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to