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)