From 7124226fc7d67ea12bde626a433c60d273e192c6 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 7 Dec 2014 20:16:12 +0100 Subject: [PATCH] py3: Use renamed function via compat --- mopidy/local/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/local/commands.py b/mopidy/local/commands.py index cfea7ef9..702626f2 100644 --- a/mopidy/local/commands.py +++ b/mopidy/local/commands.py @@ -7,7 +7,7 @@ import time from mopidy import commands, exceptions from mopidy.audio import scan from mopidy.local import translator -from mopidy.utils import path +from mopidy.utils import compat, path logger = logging.getLogger(__name__) @@ -39,7 +39,7 @@ class ClearCommand(commands.Command): library = _get_library(args, config) prompt = '\nAre you sure you want to clear the library? [y/N] ' - if raw_input(prompt).lower() != 'y': + if compat.input(prompt).lower() != 'y': print('Clearing library aborted.') return 0