From e2dbfbb1fb08bdb5a9f62ed95da9bdec5496ec10 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Mon, 17 Dec 2007 21:55:22 +0100 Subject: [PATCH] Petite correction darcs-hash:20071217205522-61eff-4ef4b4a76e299b2c659d369b9796c37b1994ddb1.gz --- gestion/darcs_send_changes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/darcs_send_changes.py b/gestion/darcs_send_changes.py index 26d1b6b0..224d99dc 100755 --- a/gestion/darcs_send_changes.py +++ b/gestion/darcs_send_changes.py @@ -66,7 +66,9 @@ def to_utf8(str): def darcs(args): """ Invoque darcs et renvoie sa sortie. """ - return to_utf8(commands.getstatusoutput("env DARCS_DONT_ESCAPE_8BIT=1 darcs " + args)) + (s, o) = commands.getstatusoutput("env DARCS_DONT_ESCAPE_8BIT=1 darcs " + args) + o = to_utf8(o) + return (s, o) def darcs_raw(args): """ Invoque darcs et renvoie sa sortie. """ @@ -79,7 +81,6 @@ def get_patch_properties(hash): else: match_cmd = "--last 1" (status, changelog) = darcs("changes %s --xml-output" % match_cmd) - changelog = to_utf8(changelog) if status != 0 or changelog == "": return None prop = etree.XML(changelog)