upgrade requests to v2.18.4

This commit is contained in:
Alan Hamlett 2017-09-05 09:40:07 -07:00
parent d6d53caef0
commit 7a53d4b767
124 changed files with 13854 additions and 7633 deletions

View file

@ -19,8 +19,6 @@ from .compat import cookielib, urlparse, urlunparse, Morsel
try:
import threading
# grr, pyflakes: this fixes "redefinition of unused 'threading'"
threading
except ImportError:
import dummy_threading as threading
@ -308,8 +306,10 @@ class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
"""
dictionary = {}
for cookie in iter(self):
if (domain is None or cookie.domain == domain) and (path is None
or cookie.path == path):
if (
(domain is None or cookie.domain == domain) and
(path is None or cookie.path == path)
):
dictionary[cookie.name] = cookie.value
return dictionary