* smarter printu

This commit is contained in:
Eray Özkural
2005-10-11 20:59:27 +00:00
parent e700a114fc
commit 0c5b318dae
+5 -3
View File
@@ -34,9 +34,11 @@ class Exception(pisi.Exception):
pass pass
def printu(msg): def printu(obj):
print msg.encode('utf-8') if not isinstance(obj, unicode):
obj = unicode(obj)
print obj.encode('utf-8')
class CLI(UI): class CLI(UI):
"Command Line Interface" "Command Line Interface"