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:
Jordan Petridis 2023-10-25 13:39:04 +03:00 committed by GStreamer Marge Bot
parent bbdf6d4653
commit e436f87ea2
3 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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"

View file

@ -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: