File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments