Skip to content
Myr

unnest deep loop

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by vienno · committed by vienno · parent 35170e1 · Browse files · 1 file+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:requests/cookies.py+5 added-4 removed
141 unmodified lines
142 Wraps CookieJar.clear(), is O(n).143 """144 clearables = []145 for cookie in cookiejar:146 if cookie.name == name:147 if domain is None or domain == cookie.domain:148 if path is None or path == cookie.path:149 clearables.append((cookie.domain, cookie.path, cookie.name))146 if cookie.name != name:147 continue148 if domain is None or domain == cookie.domain:149 if path is None or path == cookie.path:150 clearables.append((cookie.domain, cookie.path, cookie.name))151152 for domain, path, name in clearables:153 cookiejar.clear(domain, path, name)154
329 unmodified lines