From 2cb1e6668a51294df909b0ac5f7e35b7e858446e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 18 Dec 2022 20:26:21 -0500 Subject: [PATCH] spelling: workaround Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- scrapy/http/request/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.py index 8e0a7fae2..fd61a8e4e 100644 --- a/scrapy/http/request/form.py +++ b/scrapy/http/request/form.py @@ -191,7 +191,7 @@ def _select_value(ele: SelectElement, n: str, v: str): o = ele.value_options return (n, o[0]) if o else (None, None) if v is not None and multiple: - # This is a workround to bug in lxml fixed 2.3.1 + # This is a workaround to bug in lxml fixed 2.3.1 # fix https://github.com/lxml/lxml/commit/57f49eed82068a20da3db8f1b18ae00c1bab8b12#L1L1139 selected_options = ele.xpath('.//option[@selected]') values = [(o.get('value') or o.text or '').strip() for o in selected_options]