Skip to content

Commit

Permalink
modified string's concat to f-strings (#6296)
Browse files Browse the repository at this point in the history
  • Loading branch information
igeni committed Apr 1, 2024
1 parent 02b97f9 commit f7bf3f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def test_http_header_encoding_precedence(self):
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)

Expand Down

0 comments on commit f7bf3f7

Please sign in to comment.