From: Vincent Le Gallic Date: Wed, 10 Feb 2016 13:04:18 +0000 (+0100) Subject: [bde/credits_duplicates] Encoding (piping needs…) X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=f214da146daf305df5babdf646de5215ab76dcca;p=scripts-20-100.git [bde/credits_duplicates] Encoding (piping needs…) --- diff --git a/bde/credits_duplicates.py b/bde/credits_duplicates.py index 8d32ae2..3669e8e 100755 --- a/bde/credits_duplicates.py +++ b/bde/credits_duplicates.py @@ -133,7 +133,7 @@ def interactive(blocks, cur, args): if not args.noless: p = subprocess.Popen(["less"], stdin=subprocess.PIPE) p.communicate(formatted.encode("utf-8")) - print formatted + print formatted.encode("utf-8") print "IDs : %s" % b idkeep = lb[0] question = "Ne garder que %s (= dévalider les autres) ? [o/N/s]" % idkeep