_split_ascii(): Small optimization by RH.

This commit is contained in:
Barry Warsaw 2004-05-10 14:44:04 +00:00
parent 300fa1d3b2
commit 6f3b033774

View file

@ -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