mirror of https://github.com/scrapy/scrapy.git
modified string's concat to f-strings (#6296)
This commit is contained in:
parent
02b97f98e7
commit
f7bf3f726e
|
|
@ -80,10 +80,10 @@ class SelectorTestCase(unittest.TestCase):
|
|||
meta = (
|
||||
'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'
|
||||
)
|
||||
head = "<head>" + meta + "</head>"
|
||||
head = f"<head>{meta}</head>"
|
||||
body_content = '<span id="blank">\xa3</span>'
|
||||
body = "<body>" + body_content + "</body>"
|
||||
html = "<html>" + head + body + "</html>"
|
||||
body = f"<body>{body_content}</body>"
|
||||
html = f"<html>{head}{body}</html>"
|
||||
encoding = "utf-8"
|
||||
html_utf8 = html.encode(encoding)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue