From 4a8a833f14d93a9916e5b2181fdfff24ffd57477 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 17 Mar 2011 16:33:35 -0400 Subject: Reimplement wrap() using modern techniques, and finally get rid of Utils.py! --- src/mailman/pipeline/replybot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mailman/pipeline/replybot.py') diff --git a/src/mailman/pipeline/replybot.py b/src/mailman/pipeline/replybot.py index 5f17160c1..dffffbf47 100644 --- a/src/mailman/pipeline/replybot.py +++ b/src/mailman/pipeline/replybot.py @@ -30,7 +30,6 @@ import logging from zope.component import getUtility from zope.interface import implements -from mailman import Utils from mailman.core.i18n import _ from mailman.email.message import UserNotification from mailman.interfaces.autorespond import ( @@ -38,7 +37,7 @@ from mailman.interfaces.autorespond import ( from mailman.interfaces.handler import IHandler from mailman.interfaces.usermanager import IUserManager from mailman.utilities.datetime import today -from mailman.utilities.string import expand +from mailman.utilities.string import expand, wrap log = logging.getLogger('mailman.error') @@ -113,7 +112,7 @@ class Replybot: owneremail = mlist.owner_address, ) # Interpolation and Wrap the response text. - text = Utils.wrap(expand(response_text, d)) + text = wrap(expand(response_text, d)) outmsg = UserNotification(msg.sender, mlist.bounces_address, subject, text, mlist.preferred_language) outmsg['X-Mailer'] = _('The Mailman Replybot') -- cgit v1.2.3-70-g09d2