From e5f2fe6fd322450c09f5ec175af91f3b4b9d4f90 Mon Sep 17 00:00:00 2001 From: Zsin Skri Date: Sun, 21 Jul 2019 01:28:16 +0200 Subject: [PATCH] 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. --- beetsplug/replaygain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index d9f8c02d9..febacbc1b 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -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