Kaydet (Commit) 6f3b0337 authored tarafından Barry Warsaw's avatar Barry Warsaw

_split_ascii(): Small optimization by RH.

üst 300fa1d3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment