On s'assure que le changelog est bien de l'UTF-8 avant de parser le XML
darcs-hash:20071217203439-61eff-2695a205f385a90a13d9dac9b9ae17d16a68a365.gz
This commit is contained in:
parent
54c3a262fe
commit
25a0e2fe65
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue