avoid test failure

Use the POSIX character class instead of `\s` to match all whitespace in a
regular expression describing the language of valid inputs, in order to avoid a
test failure for the invalid escape sequence `\s` in Python strings.
This commit is contained in:
Zsin Skri 2019-07-21 01:28:16 +02:00
parent f9ff56f496
commit e5f2fe6fd3

View file

@ -531,7 +531,7 @@ class FfmpegBackend(Backend):
def _parse_float(self, line):
"""Extract a float from a key value pair in `line`.
This format is expected: /[^:]:\s*value.*/, where `value` is
This format is expected: /[^:]:[[:space:]]*value.*/, where `value` is
the float.
"""
# extract value