From 7dd7a56769f0faa28ffae2496f7f7c641fa1c545 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Tue, 7 Oct 2003 21:25:22 +0000 Subject: wrap(): Minor code cleaning. --- Mailman/Utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Mailman') diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 13e751a7..bf4effbc 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.2.3