]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
[bde/credits_duplicates] Encoding (piping needs…)
authorVincent Le Gallic <legallic@crans.org>
Wed, 10 Feb 2016 13:04:18 +0000 (14:04 +0100)
committerVincent Le Gallic <legallic@crans.org>
Wed, 10 Feb 2016 13:04:18 +0000 (14:04 +0100)
bde/credits_duplicates.py

index 8d32ae2267df1c556dd578afdb5e0e6dc62c478d..3669e8e51b336b3e4450e5f1c147b996cbc5904b 100755 (executable)
@@ -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