modified string's concat to f-strings (#6296)

This commit is contained in:
igeni 2024-04-01 16:37:23 +03:00 committed by GitHub
parent 02b97f98e7
commit f7bf3f726e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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)