Revert "mpd: Change to interpret regexp groups with the old locale semantics"
This reverts commit 50708f9fd7.
This commit is contained in:
parent
50708f9fd7
commit
ab906c5684
@ -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.LOCALE)
|
||||
compiled_pattern = re.compile(pattern, flags=re.UNICODE)
|
||||
if compiled_pattern in request_handlers:
|
||||
raise ValueError('Tried to redefine handler for %s with %s' % (
|
||||
pattern, func))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user