From 83dc838173075f0a398fe293163f7bfa8dbe86af Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 5 Jul 2010 21:23:48 -0700 Subject: [PATCH] fix print_ for empty strings --- beets/ui/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 48ed7f615..270e72566 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -50,6 +50,8 @@ def print_(*strings): txt = u' '.join(strings) else: txt = ' '.join(strings) + else: + txt = u'' if isinstance(txt, unicode): encoding = locale.getdefaultlocale()[1] txt = txt.encode(encoding, 'replace')