From 9eb948540cd35ee2f58e36a49e99e91cad3810e6 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 7 Oct 2003 21:24:35 +0000 Subject: wrap(): Minor code cleaning. --- Mailman/Utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 175c23a1b..443bccdac 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -145,12 +145,10 @@ def wrap(text, column=70, honor_leading_ws=True): if eol == 0: # break on whitespace after column eol = column - while eol < len(text) and \ - text[eol] not in whitespace: + while eol < len(text) and text[eol] not in whitespace: eol += 1 bol = eol - while bol < len(text) and \ - text[bol] in whitespace: + while bol < len(text) and text[bol] in whitespace: bol += 1 bol -= 1 line = text[:eol+1] + '\n' -- cgit v1.3.1