------------------------------------------------------------
revno: 999
committer: Mark Sapiro <[EMAIL PROTECTED]>
branch nick: 2.1
timestamp: Thu 2007-10-18 13:29:49 -0700
message:
  Added a call to warnings.filterwarnings() to misc/paths.py.in to supress the
  Python 2.5 DeprecationWarning on string exceptions.
modified:
  misc/paths.py.in

=== modified file 'misc/paths.py.in'
--- a/misc/paths.py.in  2006-10-12 00:48:48 +0000
+++ b/misc/paths.py.in  2007-10-18 20:29:49 +0000
@@ -1,6 +1,6 @@
 # -*- python -*-
 
-# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -24,8 +24,9 @@
 # attributes that other modules may use to get the absolute path to the
 # installed Mailman distribution.
 
+import os
 import sys
-import os
+from warnings import filterwarnings
 
 # some scripts expect this attribute to be in this module
 prefix = '@prefix@'
@@ -35,6 +36,9 @@
 if exec_prefix == '${prefix}':
     exec_prefix = prefix
 
+# Supress Python 2.5 warning about string exceptions.
+filterwarnings('ignore', '.* string exception', DeprecationWarning)
+
 # Check if ja/ko codecs are available before changing path.
 try:
     s = unicode('OK', 'iso-2022-jp')



--

https://code.launchpad.net/~mailman-coders/mailman/2.1

You are receiving this branch notification because you are subscribed to it.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+subscription/mailman-checkins.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to