scrapy / scrapy
Showing 1 of 1 files from the diff.

@@ -5,7 +5,7 @@
Loading
5 5
See documentation in docs/topics/request-response.rst
6 6
"""
7 7
8 -
from typing import Iterable, List, Optional, Tuple, Type, TypeVar, Union
8 +
from typing import List, Optional, Tuple, Type, TypeVar, Union
9 9
from urllib.parse import urljoin, urlencode, urlsplit, urlunsplit
10 10
11 11
from lxml.html import FormElement, HtmlElement, HTMLParser, SelectElement
@@ -14,7 +14,6 @@
Loading
14 14
15 15
from scrapy.http.request import Request
16 16
from scrapy.http.response.text import TextResponse
17 -
from scrapy.utils.python import to_bytes, is_listlike
18 17
from scrapy.utils.response import get_base_url
19 18
20 19
@@ -33,8 +32,7 @@
Loading
33 32
        super().__init__(*args, **kwargs)
34 33
35 34
        if formdata:
36 -
            items = formdata.items() if isinstance(formdata, dict) else formdata
37 -
            form_query_str = urlencode(formdata, doseq=1, encoding=self.encoding)
35 +
            form_query_str = urlencode(formdata, doseq=True, encoding=self.encoding)
38 36
            if self.method == 'POST':
39 37
                self.headers.setdefault(b'Content-Type', b'application/x-www-form-urlencoded')
40 38
                self._set_body(form_query_str)
Files Coverage
scrapy 88.47%
Project Totals (163 files) 88.47%
1
comment:
2
  layout: "header, diff, tree"
3

4
coverage:
5
  status:
6
    project: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading