diff options
author | Tokio Kikuchi <tkikuchi@is.kochi-u.ac.jp> | 2007-11-16 11:48:35 +0900 |
---|---|---|
committer | Tokio Kikuchi <tkikuchi@is.kochi-u.ac.jp> | 2007-11-16 11:48:35 +0900 |
commit | 8f5d8d2eb9e8bf62a598f126419d18eb3163050e (patch) | |
tree | e9dd5c5e73bed1b75811ff7614ba6489c2cd48f1 /misc | |
parent | ba98caf52c18dea4ea244c092617677bdbb01015 (diff) | |
parent | 70689d7eb61f8c852a6a02be1d65c86cde06bde2 (diff) | |
download | mailman2-8f5d8d2eb9e8bf62a598f126419d18eb3163050e.tar.gz mailman2-8f5d8d2eb9e8bf62a598f126419d18eb3163050e.tar.xz mailman2-8f5d8d2eb9e8bf62a598f126419d18eb3163050e.zip |
merge and commit
Diffstat (limited to '')
-rw-r--r-- | misc/paths.py.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/paths.py.in b/misc/paths.py.in index 3566a12c..bbf18fc7 100644 --- a/misc/paths.py.in +++ b/misc/paths.py.in @@ -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 sys import os +import sys +from warnings import filterwarnings # some scripts expect this attribute to be in this module prefix = '@prefix@' @@ -35,6 +36,9 @@ exec_prefix = '@exec_prefix@' 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') |