Bug#490279: mail pipe uses deprecated get_type, causing warnings to be bounced to the sender
Package: qa.debian.org
Severity: normal
Tags: patch
Today I sent a message to pts-news@qa.d.o and it bounced with:
-------------------------------------------------------
pipe to | /org/packages.qa.debian.org/www/bin/receive_news.py
generated by _news@packages.qa.debian.org
The following text was generated during the delivery attempt:
------ pipe to | /org/packages.qa.debian.org/www/bin/receive_news.py
generated by _news@packages.qa.debian.org ------
/srv/packages.qa.debian.org/www/bin/common.py:37: DeprecationWarning:
get_type()
+deprecated; use get_content_type()
if part.get_type("text/plain") == "text/plain":
/srv/packages.qa.debian.org/www/bin/common.py:37: DeprecationWarning:
get_type()
+deprecated; use get_content_type()
if part.get_type("text/plain") == "text/plain":
-------------------------------------------------------
The message is shown on the QA page so it worked otherwise.
(Could have used Severity: minor, but bounces are worrying)
The obvious patch is to s/get_type/get_content_type/
TIA,
dam
Reply to: