From efed5409610273aadeb8f5c53fa89ae76f076c7f Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Sun, 17 Nov 2013 17:10:40 +0400 Subject: fix python2 unicode related problems --- cutter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cutter.py') diff --git a/cutter.py b/cutter.py index d4dfd1c..043fbab 100755 --- a/cutter.py +++ b/cutter.py @@ -213,9 +213,9 @@ def parse_args(): for opt in tag_options: if type(opt) in (list, tuple): - tag.add_argument(*["--" + s for s in opt], default="") + tag.add_argument(*["--" + s for s in opt], type=to_unicode, default="") else: - tag.add_argument("--" + opt, default="") + tag.add_argument("--" + opt, type=to_unicode, default="") tag.add_argument("--track-total", type=int, dest="tracktotal", metavar="TOTAL") tag.add_argument("--track-start", type=int, dest="trackstart", metavar="START") -- cgit v1.2.3-70-g09d2