use unicode for all sql statements and arguments

This commit is contained in:
j 2014-04-15 14:40:28 +02:00
commit 392504e239
2 changed files with 33 additions and 30 deletions

View file

@ -66,5 +66,6 @@ for more information visit https://wiki.0x2620.org/wiki/pandora_client''' % ', '
}, f, indent=2)
pandora_client.DEBUG = opts.debug
c = pandora_client.Client(opts.config, offline)
getattr(c, action)(args[1:])
args = [a.decode('utf-8') if isinstance(a, str) else a for a in args[1:]]
getattr(c, action)(args)