mpd: Change to interpret regexp groups with the old locale semantics

This commit is contained in:
Stein Magnus Jodal 2012-11-21 01:30:07 +01:00
parent 3af3eb5127
commit 50708f9fd7

View File

@ -56,7 +56,7 @@ def handle_request(pattern, auth_required=True):
if match is not None:
mpd_commands.add(
MpdCommand(name=match.group(), auth_required=auth_required))
compiled_pattern = re.compile(pattern, flags=re.UNICODE)
compiled_pattern = re.compile(pattern, flags=re.LOCALE)
if compiled_pattern in request_handlers:
raise ValueError('Tried to redefine handler for %s with %s' % (
pattern, func))