From 6f3b033774c9e6b005a18bcf6811f138b61b92e8 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 10 May 2004 14:44:04 +0000 Subject: _split_ascii(): Small optimization by RH. --- Lib/email/Header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/email/Header.py b/Lib/email/Header.py index 7f2b444..21acaf1 100644 --- a/Lib/email/Header.py +++ b/Lib/email/Header.py @@ -411,7 +411,7 @@ def _split_ascii(s, firstlen, restlen, continuation_ws, splitchars): # syntax; we just try to break on semi-colons, then commas, then # whitespace. for ch in splitchars: - if line.find(ch) >= 0: + if ch in line: break else: # There's nothing useful to split the line on, not even spaces, so -- cgit v0.12