Made warning filtering more fine grained

Nathaniel Smith njs at pobox.com
Wed Apr 16 06:02:37 UTC 2003


Applied attached patch.

-- Nathaniel

-- 
"Lull'd in the countless chambers of the brain,
Our thoughts are link'd by many a hidden chain:
Awake but one, and lo! what myriads rise!
Each stamps its image as the other flies"
  -- Ann Ward Radcliffe, The Mysteries of Udolpho

This email may be read aloud.
-------------- next part --------------
Index: ChangeLog
===================================================================
RCS file: /home/qm/Repository/qm/ChangeLog,v
retrieving revision 1.465
diff -u -r1.465 ChangeLog
--- ChangeLog	16 Apr 2003 05:37:41 -0000	1.465
+++ ChangeLog	16 Apr 2003 05:59:53 -0000
@@ -1,5 +1,9 @@
 2003-04-15  Nathaniel Smith  <njs at pobox.com>
 
+	* qm/setup_path.py.in: Make warnings filtering more fine-grained.
+	
+2003-04-15  Nathaniel Smith  <njs at pobox.com>
+
 	* qm/test/base.py (get_extension_directories): typo in comment.
 	* qm/test/classes/process_target.py (QMTestExecutable): typo in 
 	docstring.
Index: qm/setup_path.py.in
===================================================================
RCS file: /home/qm/Repository/qm/qm/setup_path.py.in,v
retrieving revision 1.15
diff -u -r1.15 setup_path.py.in
--- qm/setup_path.py.in	13 Apr 2003 05:42:34 -0000	1.15
+++ qm/setup_path.py.in	16 Apr 2003 05:59:53 -0000
@@ -46,11 +46,13 @@
     __unsupported_python_version()
 
     
-# Some of the packages that are used with QM use modules (like regsub)
-# that are obsolete in Python 2.1.  Prevent Python from warning
-# about these modules.
+# DocumentTemplate uses regex and regsub, which are obsolete.  Prevent
+# Python from warning about these modules.
 import warnings
-warnings.filterwarnings("ignore")
+warnings.filterwarnings("ignore",
+                        r".*(regex|regsub).*",
+                        DeprecationWarning,
+                        r".*(DocumentTemplate|regsub).*")
 
 import os.path
 


More information about the qmtest mailing list