mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
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:
parent
f9ff56f496
commit
e5f2fe6fd3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue