[cleanup] Fix minor mistakes (#17083)

Authored by: doe1080
This commit is contained in:
doe1080
2026-06-29 23:08:40 +00:00
committed by GitHub
parent 500e54cf86
commit b0472c3bce
22 changed files with 34 additions and 36 deletions
+2 -2
View File
@@ -3070,8 +3070,8 @@ class InfoExtractor:
# %(...) counterparts to be used with % operator
t = re.sub(r'\$({})\$'.format('|'.join(identifiers)), r'%(\1)d', t)
t = re.sub(r'\$({})%([^$]+)\$'.format('|'.join(identifiers)), r'%(\1)\2', t)
t.replace('$$', '$')
return t
return t.replace('$$', '$')
# @initialization is a regular template like @media one
# so it should be handled just the same way (see