From d0a305a8e2208d1188c4013328a64d5d7f17de9c Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 7 Feb 2014 20:33:34 +0100 Subject: [PATCH] local: Use print() function --- mopidy/local/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mopidy/local/commands.py b/mopidy/local/commands.py index 885ea946..fb8f5368 100644 --- a/mopidy/local/commands.py +++ b/mopidy/local/commands.py @@ -1,4 +1,4 @@ -from __future__ import unicode_literals +from __future__ import print_function, unicode_literals import logging import os @@ -40,14 +40,14 @@ class ClearCommand(commands.Command): prompt = '\nAre you sure you want to clear the library? [y/N] ' if raw_input(prompt).lower() != 'y': - print 'Clearing library aborted.' + print('Clearing library aborted.') return 0 if library.clear(): - print 'Library successfully cleared.' + print('Library successfully cleared.') return 0 - print 'Unable to clear library.' + print('Unable to clear library.') return 1