mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
_split_ascii(): Small optimization by RH.
This commit is contained in:
parent
300fa1d3b2
commit
6f3b033774
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue