Skip to content

Commit e2339fb

Browse files
committed
Apply black
1 parent 83a1ecf commit e2339fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

w3lib/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def remove_tags_with_content(
233233

234234
utext = to_unicode(text, encoding)
235235
if which_ones:
236-
tags = "|".join([fr"<{tag}\b.*?</{tag}>|<{tag}\s*/>" for tag in which_ones])
236+
tags = "|".join([rf"<{tag}\b.*?</{tag}>|<{tag}\s*/>" for tag in which_ones])
237237
retags = re.compile(tags, re.DOTALL | re.IGNORECASE)
238238
utext = retags.sub("", utext)
239239
return utext

w3lib/url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def parse_data_uri(uri: StrOrBytes) -> ParseDataURIResult:
425425
if m:
426426
attribute, value, value_quoted = m.groups()
427427
if value_quoted:
428-
value = re.sub(br"\\(.)", rb"\1", value_quoted)
428+
value = re.sub(rb"\\(.)", rb"\1", value_quoted)
429429
media_type_params[attribute.decode()] = value.decode()
430430
uri = uri[m.end() :]
431431
else:

0 commit comments

Comments
 (0)