mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
launcher: Fix ambigious python strings
``` gst-devtools/validate/launcher/baseclasses.py:2399: SyntaxWarning: invalid escape sequence '\.' if re.findall("%s\..*\.%s$" % (re.escape(mfile_bname), self.FILE_EXTENSION), f): gst-devtools/validate/launcher/apps/gstvalidate.py:1354: SyntaxWarning: invalid escape sequence '\.' ("file\.transcode.*mxf", ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5541>
This commit is contained in:
parent
bbdf6d4653
commit
e436f87ea2
3 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ def get_target_install_filename(target, filename):
|
||||||
|
|
||||||
def get_pkgconfig_variable_from_pcfile(pcfile, varname):
|
def get_pkgconfig_variable_from_pcfile(pcfile, varname):
|
||||||
variables = {}
|
variables = {}
|
||||||
substre = re.compile('\$\{[^${}]+\}')
|
substre = re.compile(r'\$\{[^${}]+\}')
|
||||||
with pcfile.open('r', encoding='utf-8') as f:
|
with pcfile.open('r', encoding='utf-8') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
if '=' not in line:
|
if '=' not in line:
|
||||||
|
|
|
@ -1351,7 +1351,7 @@ not been tested and explicitly activated if you set use --wanted-tests ALL""")
|
||||||
# MXF known issues"
|
# MXF known issues"
|
||||||
("*reverse_playback.*mxf",
|
("*reverse_playback.*mxf",
|
||||||
"Reverse playback is not handled in MXF"),
|
"Reverse playback is not handled in MXF"),
|
||||||
("file\.transcode.*mxf",
|
(r'file\.transcode.*mxf',
|
||||||
"FIXME: Transcoding and mixing tests need to be tested"),
|
"FIXME: Transcoding and mixing tests need to be tested"),
|
||||||
|
|
||||||
# WMV known issues"
|
# WMV known issues"
|
||||||
|
|
|
@ -2396,7 +2396,7 @@ class ScenarioManager(Loggable):
|
||||||
mfile_bname = os.path.basename(mfile)
|
mfile_bname = os.path.basename(mfile)
|
||||||
|
|
||||||
for f in os.listdir(os.path.dirname(mfile)):
|
for f in os.listdir(os.path.dirname(mfile)):
|
||||||
if re.findall("%s\..*\.%s$" % (re.escape(mfile_bname), self.FILE_EXTENSION), f):
|
if re.findall(r'%s\..*\.%s$' % (re.escape(mfile_bname), self.FILE_EXTENSION), f):
|
||||||
scenarios.append(os.path.join(os.path.dirname(mfile), f))
|
scenarios.append(os.path.join(os.path.dirname(mfile), f))
|
||||||
|
|
||||||
if scenarios:
|
if scenarios:
|
||||||
|
|
Loading…
Reference in a new issue