Skip to content

Commit

Permalink
Remove long deprecated function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Apr 24, 2023
1 parent 18d927e commit 9f9ea61
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions news/1-1.breaking
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove long deprecated `renderMessage` function.
[@jensens]
1 change: 0 additions & 1 deletion plone/rfc822/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from plone.rfc822._utils import initializeObject
from plone.rfc822._utils import initializeObjectFromSchema
from plone.rfc822._utils import initializeObjectFromSchemata
from plone.rfc822._utils import renderMessage
from plone.rfc822.interfaces import IMessageAPI

import zope.interface
Expand Down
7 changes: 0 additions & 7 deletions plone/rfc822/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from plone.rfc822.interfaces import IFieldMarshaler
from plone.rfc822.interfaces import IPrimaryField
from zope.component import queryMultiAdapter
from zope.deprecation import deprecate
from zope.schema import getFieldsInOrder

import logging
Expand Down Expand Up @@ -126,12 +125,6 @@ def constructMessage(context, fields, charset="utf-8"):
return msg


@deprecate("Use 'message.as_string()' from 'email.message.Message' class instead.")
def renderMessage(message, mangleFromHeader=False):
# to be removed in a 3.x series
return message.as_string(mangleFromHeader)


def initializeObjectFromSchema(context, schema, message, defaultCharset="utf-8"):
initializeObject(context, getFieldsInOrder(schema), message, defaultCharset)

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"python-dateutil",
"setuptools",
"zope.component",
"zope.deprecation",
"zope.interface",
"zope.schema",
],
Expand Down

0 comments on commit 9f9ea61

Please sign in to comment.