summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2004-05-10 14:44:04 (GMT)
committerBarry Warsaw <barry@python.org>2004-05-10 14:44:04 (GMT)
commit6f3b033774c9e6b005a18bcf6811f138b61b92e8 (patch)
treedf3c2e8f5164cd8c6922e533cb1d9f9b0537dc04
parent300fa1d3b27e43c58eb62abd5d85295eba2d81e7 (diff)
downloadcpython-6f3b033774c9e6b005a18bcf6811f138b61b92e8.zip
cpython-6f3b033774c9e6b005a18bcf6811f138b61b92e8.tar.gz
cpython-6f3b033774c9e6b005a18bcf6811f138b61b92e8.tar.bz2
_split_ascii(): Small optimization by RH.
-rw-r--r--Lib/email/Header.py2
1 files changed, 1 insertions, 1 deletions
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