mirror of https://github.com/scrapy/scrapy.git
fix typos (#7564)
This commit is contained in:
parent
4a16550859
commit
44406806f8
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends "!layout.html" %}
|
{% extends "!layout.html" %}
|
||||||
|
|
||||||
{# Overriden to include a link to scrapy.org, not just to the docs root #}
|
{# Overridden to include a link to scrapy.org, not just to the docs root #}
|
||||||
{%- block sidebartitle %}
|
{%- block sidebartitle %}
|
||||||
|
|
||||||
{# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #}
|
{# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #}
|
||||||
|
|
|
||||||
|
|
@ -2200,7 +2200,7 @@ Backward-incompatible changes
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- User-defined cookies for HTTPS requests will have the ``secure`` flag set
|
- User-defined cookies for HTTPS requests will have the ``secure`` flag set
|
||||||
to ``True`` unless it's set to ``False`` explictly. This is important when
|
to ``True`` unless it's set to ``False`` explicitly. This is important when
|
||||||
these cookies are reused in HTTP requests, e.g. after a redirect to an HTTP
|
these cookies are reused in HTTP requests, e.g. after a redirect to an HTTP
|
||||||
URL.
|
URL.
|
||||||
(:issue:`6357`)
|
(:issue:`6357`)
|
||||||
|
|
@ -2235,7 +2235,7 @@ Backward-incompatible changes
|
||||||
``crawler.settings`` instead. When they call ``__init__()`` of the base
|
``crawler.settings`` instead. When they call ``__init__()`` of the base
|
||||||
class they should pass the ``crawler`` argument to it too.
|
class they should pass the ``crawler`` argument to it too.
|
||||||
- A ``from_settings()`` method shouldn't be defined. Class-specific
|
- A ``from_settings()`` method shouldn't be defined. Class-specific
|
||||||
initialization code should go into either an overriden ``from_crawler()``
|
initialization code should go into either an overridden ``from_crawler()``
|
||||||
method or into ``__init__()``.
|
method or into ``__init__()``.
|
||||||
- It's now possible to override ``from_crawler()`` and it's not necessary
|
- It's now possible to override ``from_crawler()`` and it's not necessary
|
||||||
to call ``MediaPipeline.from_crawler()`` in it if other recommendations
|
to call ``MediaPipeline.from_crawler()`` in it if other recommendations
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ def _cookie_to_set_cookie_value(cookie):
|
||||||
def _cookies_to_set_cookie_list(cookies):
|
def _cookies_to_set_cookie_list(cookies):
|
||||||
"""Given a group of cookie defined either as a dictionary or as a list of
|
"""Given a group of cookie defined either as a dictionary or as a list of
|
||||||
dictionaries (i.e. in a format supported by the cookies parameter of
|
dictionaries (i.e. in a format supported by the cookies parameter of
|
||||||
Request), return the equivalen list of strings that can be associated to a
|
Request), return the equivalent list of strings that can be associated to a
|
||||||
``Set-Cookie`` header."""
|
``Set-Cookie`` header."""
|
||||||
if not cookies:
|
if not cookies:
|
||||||
return []
|
return []
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ class TestRequestSendOrder:
|
||||||
@coroutine_test
|
@coroutine_test
|
||||||
async def test_shared_queues(self):
|
async def test_shared_queues(self):
|
||||||
"""If SCHEDULER_START_*_QUEUE is falsy, start requests and other
|
"""If SCHEDULER_START_*_QUEUE is falsy, start requests and other
|
||||||
requests share the same queue, i.e. start requests are not priorized
|
requests share the same queue, i.e. start requests are not prioritized
|
||||||
over other requests if their priority matches."""
|
over other requests if their priority matches."""
|
||||||
nums = list(range(1, 14))
|
nums = list(range(1, 14))
|
||||||
response_seconds = 0
|
response_seconds = 0
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ def test_stderr_log_handler() -> None:
|
||||||
|
|
||||||
It's added in ``configure_logging()``, called by ``{Async,}CrawlerProcess``
|
It's added in ``configure_logging()``, called by ``{Async,}CrawlerProcess``
|
||||||
(without ``install_root_handler=False``). It can be removed with
|
(without ``install_root_handler=False``). It can be removed with
|
||||||
``_uninstall_scrapy_root_handler()`` if installing it was really neeeded.
|
``_uninstall_scrapy_root_handler()`` if installing it was really needed.
|
||||||
"""
|
"""
|
||||||
c = sum(1 for h in logging.root.handlers if type(h) is logging.StreamHandler) # pylint: disable=unidiomatic-typecheck
|
c = sum(1 for h in logging.root.handlers if type(h) is logging.StreamHandler) # pylint: disable=unidiomatic-typecheck
|
||||||
assert c == 0
|
assert c == 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue