From 4a6815aa058ec0adc58ed4afc160c28f83275d6d Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sun, 30 Jun 2013 00:43:41 +0200 Subject: [PATCH] =?utf8?q?Maintenant=20on=20supporte=20d'=C3=AAtre=20pip?= =?utf8?q?=C3=A9=20dans=20un=20grep?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- today.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/today.py b/today.py index 4522d07..8594fdb 100755 --- a/today.py +++ b/today.py @@ -369,7 +369,7 @@ def initialize(): for ifile in range(len(files)): namefile = files[ifile] if os.path.isfile(namefile): - print "%s exists, skipping." % (namefile,) + print (u"%s exists, skipping." % (namefile,)).encode("utf-8") else: f = open(namefile, "w") f.write(contents[ifile].encode("utf-8")) @@ -389,7 +389,7 @@ def sync(): out = proc.stdout.read() newdict = json.loads(out) update_last_seen(newdict) - print u"Nouvel état : %r" % newdict + print (u"Nouvel état : %r" % newdict).encode("utf-8") @@ -439,4 +439,4 @@ if __name__ == "__main__": args = sys.argv[2:] output = ACTIONS[commande](*args) if output: - print output + print output.encode("utf-8") -- 2.39.2