Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37479987
en ru br
Репозитории ALT
S:2.1.39-alt1
5.1: 2.1.12-alt2
4.1: 2.1.10-alt0.3.1.M41.1
4.0: 2.1.9-alt6.M40.1
3.0: 2.1.6-alt1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: mailman

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: mailman-2.1.9-deb-78_DeprecationWarning.patch
Скачать


Patch: 78_DeprecationWarning.patch
Author: Lionel Elie Mamane <lionel@mamane.lu>
Shut up DeprecationWarning in Python 2.4
Index: Mailman/Handlers/Scrubber.py
===================================================================
--- Mailman/Handlers/Scrubber.py.orig	2006-08-15 15:14:55.000000000 +0800
+++ Mailman/Handlers/Scrubber.py	2006-08-15 15:14:58.000000000 +0800
@@ -26,6 +26,7 @@
 import errno
 import binascii
 import tempfile
+import warnings
 from cStringIO import StringIO
 from types import IntType, StringType
 
@@ -77,6 +78,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):
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin