mirror of
https://github.com/searxng/searxng.git
synced 2025-07-14 00:39:18 +02:00
[format.python] disable py code formatting for some hunks of code
Disable the python code formatting from python-black, where the readability of code suffers by formatting. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
c849731eb1
commit
fcdc2c2cd2
13 changed files with 114 additions and 68 deletions
|
@ -92,14 +92,20 @@ WHERE {
|
|||
|
||||
# https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL1
|
||||
# https://lists.w3.org/Archives/Public/public-rdf-dawg/2011OctDec/0175.html
|
||||
sparql_string_escape = get_string_replaces_function({'\t': '\\\t',
|
||||
'\n': '\\\n',
|
||||
'\r': '\\\r',
|
||||
'\b': '\\\b',
|
||||
'\f': '\\\f',
|
||||
'\"': '\\\"',
|
||||
'\'': '\\\'',
|
||||
'\\': '\\\\'})
|
||||
sparql_string_escape = get_string_replaces_function(
|
||||
# fmt: off
|
||||
{
|
||||
'\t': '\\\t',
|
||||
'\n': '\\\n',
|
||||
'\r': '\\\r',
|
||||
'\b': '\\\b',
|
||||
'\f': '\\\f',
|
||||
'\"': '\\\"',
|
||||
'\'': '\\\'',
|
||||
'\\': '\\\\'
|
||||
}
|
||||
# fmt: on
|
||||
)
|
||||
|
||||
replace_http_by_https = get_string_replaces_function({'http:': 'https:'})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue