From 3bf4d0e9d1e274261cbbe54cb5647c4e3513facc Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 17 Nov 2013 15:24:33 +0100 Subject: [PATCH] mpd: Use same regexp flags everywhere --- mopidy/frontends/mpd/translator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/frontends/mpd/translator.py b/mopidy/frontends/mpd/translator.py index e4fb0d62..cd8b751a 100644 --- a/mopidy/frontends/mpd/translator.py +++ b/mopidy/frontends/mpd/translator.py @@ -223,7 +223,7 @@ MPD_SEARCH_QUERY_RE = re.compile(r""" "? # End of optional quote around the field type \s # A single space "[^"]+" # Matching a quoted search string -""", re.VERBOSE) +""", flags=(re.UNICODE | re.VERBOSE)) MPD_SEARCH_QUERY_PART_RE = re.compile(r""" \b # Only begin matching at word bundaries @@ -246,7 +246,7 @@ MPD_SEARCH_QUERY_PART_RE = re.compile(r""" "? # End of optional quote around the field type \s # A single space "(?P[^"]+)" # Capturing a quoted search string -""", re.VERBOSE) +""", flags=(re.UNICODE | re.VERBOSE)) def query_from_mpd_search_format(mpd_query):