[Pkg-mailman-hackers] Pkg-mailman commit - rev 266 - in trunk/debian: . patches

Lionel Elie Mamane lmamane at costa.debian.org
Wed Jan 4 20:43:52 UTC 2006


Author: lmamane
Date: 2006-01-04 20:43:51 +0000 (Wed, 04 Jan 2006)
New Revision: 266

Added:
   trunk/debian/patches/78_DeprecationWarning.dpatch
Modified:
   trunk/debian/changelog
Log:
Shut up DeprecationWarning with Python 2.4 in Scrubber.py (closes: #341699)


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-12-27 21:32:57 UTC (rev 265)
+++ trunk/debian/changelog	2006-01-04 20:43:51 UTC (rev 266)
@@ -4,8 +4,9 @@
     The "automagically setgid to right group" part was slightly
     suboptimal. (closes: #309339)
   * Update German translation of debconf templates (closes: #344907)
+  * Shut up DeprecationWarning with Python 2.4 in Scrubber.py (closes: #341699)
 
- -- Lionel Elie Mamane <lmamane at debian.org>  Tue, 27 Dec 2005 22:24:01 +0100
+ -- Lionel Elie Mamane <lmamane at debian.org>  Wed,  4 Jan 2006 21:43:25 +0100
 
 mailman (2.1.6-1) unstable; urgency=low
 

Added: trunk/debian/patches/78_DeprecationWarning.dpatch
===================================================================
--- trunk/debian/patches/78_DeprecationWarning.dpatch	2005-12-27 21:32:57 UTC (rev 265)
+++ trunk/debian/patches/78_DeprecationWarning.dpatch	2006-01-04 20:43:51 UTC (rev 266)
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 78_DeprecationWarning.dpatch by  <lionel at mamane.lu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Shut up DeprecationWarning in Python 2.4
+
+ at DPATCH@
+diff -urNad mailman-2.1.6~/Mailman/Handlers/Scrubber.py mailman-2.1.6/Mailman/Handlers/Scrubber.py
+--- mailman-2.1.6~/Mailman/Handlers/Scrubber.py	2005-12-10 13:37:51.000000000 +0100
++++ mailman-2.1.6/Mailman/Handlers/Scrubber.py	2006-01-04 21:37:03.123494616 +0100
+@@ -76,6 +76,10 @@
+             check(mimetypes.common_types)
+         return all
+ 
++# FIXME: Remove for Mailman 2.2 (which will drop support for Python 2.1)
++# and then actually replace part.get_type(part.get_default_type())
++# with part.get_content_type()
++warnings.filterwarnings("ignore","^get_type\(\) deprecated;",DeprecationWarning,"Mailman")
+ 
+ 
+ def guess_extension(ctype, ext):


Property changes on: trunk/debian/patches/78_DeprecationWarning.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-mailman-hackers mailing list