allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#6900] Decode changes html to unicode
Date Wed, 20 Nov 2013 16:56:08 GMT
Updated Branches:
  refs/heads/tv/6900 [created] c0b5573e4


[#6900] Decode changes html to unicode

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c0b5573e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c0b5573e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c0b5573e

Branch: refs/heads/tv/6900
Commit: c0b5573e422b05483ca88314f97c365f46fa1dd2
Parents: 16da64b
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Wed Nov 20 16:55:46 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Nov 20 16:55:46 2013 +0000

----------------------------------------------------------------------
 Allura/allura/scripts/trac_export.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c0b5573e/Allura/allura/scripts/trac_export.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/trac_export.py b/Allura/allura/scripts/trac_export.py
index 0ca4b39..8be9fe0 100644
--- a/Allura/allura/scripts/trac_export.py
+++ b/Allura/allura/scripts/trac_export.py
@@ -160,7 +160,7 @@ class TracExport(object):
             c = {}
             c['submitter'] = re.sub(r'.* by ', '', comment.find('h3', 'change').text).strip()
             c['date'] = self.trac2z_date(comment.find('a', 'timeline')['title'].replace('
in Timeline', ''))
-            changes = str(comment.find('ul', 'changes') or '')
+            changes = unicode(comment.find('ul', 'changes') or '')
             body = comment.find('div', 'comment')
             body = body.renderContents('utf8').decode('utf8') if body else ''
             c['comment'] = html2text.html2text(changes + body)


Mime
View raw message