Kaydet (Commit) acd3baf2 authored tarafından Srinivas Reddy Thatiparthy's avatar Srinivas Reddy Thatiparthy Kaydeden (comit) Tim Graham

Improved readability of utils.datetime_safe._findall().

üst 47a99d70
......@@ -61,12 +61,12 @@ def _findall(text, substr):
# Also finds overlaps
sites = []
i = 0
while 1:
j = text.find(substr, i)
if j == -1:
while True:
i = text.find(substr, i)
if i == -1:
break
sites.append(j)
i = j + 1
sites.append(i)
i += 1
return sites
......
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