]> git.pld-linux.org Git - packages/mailman.git/commitdiff
- shut up deprecation warnings in python 2.6
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 15 Oct 2008 10:58:23 +0000 (10:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mailman-python2.6.patch -> 1.1

mailman-python2.6.patch [new file with mode: 0644]

diff --git a/mailman-python2.6.patch b/mailman-python2.6.patch
new file mode 100644 (file)
index 0000000..813b365
--- /dev/null
@@ -0,0 +1,27 @@
+--- mailman-2.1.11/Mailman/Utils.py~   2008-06-30 18:29:46.000000000 +0200
++++ mailman-2.1.11/Mailman/Utils.py    2008-10-15 12:47:17.000000000 +0200
+@@ -28,6 +28,10 @@
+ import os
+ import re
++
++from warnings import filterwarnings
++filterwarnings('ignore', '.* sha module', DeprecationWarning)
++
+ import cgi
+ import sha
+ import time
+--- mailman-2.1.11/Mailman/SecurityManager.py~ 2008-06-30 18:29:46.000000000 +0200
++++ mailman-2.1.11/Mailman/SecurityManager.py  2008-10-15 12:55:04.000000000 +0200
+@@ -49,6 +49,11 @@
+ import os
+ import re
++
++from warnings import filterwarnings
++filterwarnings('ignore', '.* sha module', DeprecationWarning)
++filterwarnings('ignore', '.* md5 module', DeprecationWarning)
++
+ import sha
+ import time
+ import Cookie
This page took 0.112447 seconds and 4 git commands to generate.