Petite correction
darcs-hash:20071217205522-61eff-4ef4b4a76e299b2c659d369b9796c37b1994ddb1.gz
This commit is contained in:
parent
d44bae289d
commit
e2dbfbb1fb
1 changed files with 3 additions and 2 deletions
|
@ -66,7 +66,9 @@ def to_utf8(str):
|
||||||
|
|
||||||
def darcs(args):
|
def darcs(args):
|
||||||
""" Invoque darcs et renvoie sa sortie. """
|
""" 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):
|
def darcs_raw(args):
|
||||||
""" Invoque darcs et renvoie sa sortie. """
|
""" Invoque darcs et renvoie sa sortie. """
|
||||||
|
@ -79,7 +81,6 @@ def get_patch_properties(hash):
|
||||||
else:
|
else:
|
||||||
match_cmd = "--last 1"
|
match_cmd = "--last 1"
|
||||||
(status, changelog) = darcs("changes %s --xml-output" % match_cmd)
|
(status, changelog) = darcs("changes %s --xml-output" % match_cmd)
|
||||||
changelog = to_utf8(changelog)
|
|
||||||
if status != 0 or changelog == "":
|
if status != 0 or changelog == "":
|
||||||
return None
|
return None
|
||||||
prop = etree.XML(changelog)
|
prop = etree.XML(changelog)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue