py3: Use renamed function via compat

This commit is contained in:
Stein Magnus Jodal 2014-12-07 20:16:12 +01:00
parent 01c7f12976
commit 7124226fc7

View File

@ -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