mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 11:19:54 +02:00
[format.python] initial formatting of the python code
This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
fcdc2c2cd2
commit
3d96a9839a
184 changed files with 2800 additions and 2836 deletions
|
@ -48,7 +48,7 @@ def response(resp):
|
|||
def_abbr = extract_text(def_item.xpath('.//abbr')).strip()
|
||||
def_text = extract_text(def_item).strip()
|
||||
if def_abbr:
|
||||
def_text = def_text[len(def_abbr):].strip()
|
||||
def_text = def_text[len(def_abbr) :].strip()
|
||||
src_defs.append((def_abbr, def_text))
|
||||
|
||||
definitions.append((src_text, src_defs))
|
||||
|
@ -66,9 +66,11 @@ def response(resp):
|
|||
infobox += f"<li><i>{def_abbr}</i> {def_text}</li>"
|
||||
infobox += "</ul>"
|
||||
|
||||
results.append({
|
||||
'infobox': word,
|
||||
'content': infobox,
|
||||
})
|
||||
results.append(
|
||||
{
|
||||
'infobox': word,
|
||||
'content': infobox,
|
||||
}
|
||||
)
|
||||
|
||||
return results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue