Skip to content
Myr

Replace 'if x' with 'if x is not None' in cookie 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 89178eb · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/cookies.py+2 added-2 removed
143 unmodified lines
144 clearables = []145 for cookie in cookiejar:146 if cookie.name != name:147 continue148 if domain and domain != cookie.domain:148 if domain is not None and domain != cookie.domain:149 continue150 if path and path != cookie.path:150 if path is not None and path != cookie.path:151 continue152 clearables.append((cookie.domain, cookie.path, cookie.name))153154 for domain, path, name in clearables:
331 unmodified lines