We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9890d5 commit c29a1b9Copy full SHA for c29a1b9
scrapy/core/downloader/handlers/http11.py
@@ -42,10 +42,11 @@ def __init__(self, settings):
42
except TypeError:
43
# use context factory defaults
44
self._contextFactory = self._contextFactoryClass()
45
- warnings.warn("""
+ msg = """
46
You are using a context factory class that does not accept the `method` argument
47
(type OpenSSL.SSL method, e.g. OpenSSL.SSL.SSLv23_METHOD).
48
- Please upgrade your context factory class to handle or ignore it.""")
+ Please upgrade your context factory class to handle or ignore it."""
49
+ warnings.warn(msg)
50
self._default_maxsize = settings.getint('DOWNLOAD_MAXSIZE')
51
self._default_warnsize = settings.getint('DOWNLOAD_WARNSIZE')
52
self._disconnect_timeout = 1
0 commit comments