[Spambayes-checkins] spambayes/spambayes PyMeldLite.py,1.2,1.3

Richie Hindle richiehindle at users.sourceforge.net
Mon Jan 20 15:22:06 EST 2003


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv1058

Modified Files:
	PyMeldLite.py 
Log Message:
Suppressed the "xmllib is obsolete" warning (for now).


Index: PyMeldLite.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/PyMeldLite.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PyMeldLite.py	20 Jan 2003 23:01:10 -0000	1.2
--- PyMeldLite.py	20 Jan 2003 23:22:02 -0000	1.3
***************
*** 194,200 ****
  
  
  import re, xmllib
  
- # Entrian.Coverage: Pragma Stop
  try:
      True, False, bool
--- 194,209 ----
  
  
+ # Entrian.Coverage: Pragma Stop
+ try:
+     # XXX Take this seriously before 2.4 comes out...
+     import warnings
+     warnings.filterwarnings(action='ignore',
+                             message='.*xmllib',
+                             category=DeprecationWarning)
+ except ImportError:
+     pass
+ 
  import re, xmllib
  
  try:
      True, False, bool





More information about the Spambayes-checkins mailing list