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

@@ -34,7 +34,7 @@
Loading
34 34
35 35
        if formdata:
36 36
            items = formdata.items() if isinstance(formdata, dict) else formdata
37 -
            form_query_str = _urlencode(items, self.encoding)
37 +
            form_query_str = urlencode(formdata, doseq=1, encoding=self.encoding)
38 38
            if self.method == 'POST':
39 39
                self.headers.setdefault(b'Content-Type', b'application/x-www-form-urlencoded')
40 40
                self._set_body(form_query_str)
@@ -83,13 +83,6 @@
Loading
83 83
    return urljoin(form.base_url, url)
84 84
85 85
86 -
def _urlencode(seq: Iterable, enc: str) -> str:
87 -
    values = [(to_bytes(k, enc), to_bytes(v, enc))
88 -
              for k, vs in seq
89 -
              for v in (vs if is_listlike(vs) else [vs])]
90 -
    return urlencode(values, doseq=True)
91 -
92 -
93 86
def _get_form(
94 87
    response: TextResponse,
95 88
    formname: Optional[str],
Files Coverage
scrapy 88.48%
Project Totals (163 files) 88.48%
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