mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +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/6044>
This commit is contained in:
parent
3992db760d
commit
634000d103
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):
|
||||
variables = {}
|
||||
substre = re.compile('\$\{[^${}]+\}')
|
||||
substre = re.compile(r'\$\{[^${}]+\}')
|
||||
with pcfile.open('r', encoding='utf-8') as f:
|
||||
for line in f:
|
||||
if '=' not in line:
|
||||
|
|
|
@ -1351,7 +1351,7 @@ not been tested and explicitly activated if you set use --wanted-tests ALL""")
|
|||
# MXF known issues"
|
||||
("*reverse_playback.*mxf",
|
||||
"Reverse playback is not handled in MXF"),
|
||||
("file\.transcode.*mxf",
|
||||
(r'file\.transcode.*mxf',
|
||||
"FIXME: Transcoding and mixing tests need to be tested"),
|
||||
|
||||
# WMV known issues"
|
||||
|
|
|
@ -2386,7 +2386,7 @@ class ScenarioManager(Loggable):
|
|||
mfile_bname = os.path.basename(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))
|
||||
|
||||
if scenarios:
|
||||
|
|
Loading…
Reference in a new issue