allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6480] move html2text import inline, so file can be imported even if not installed
Date Wed, 07 Aug 2013 17:50:42 GMT
Updated Branches:
  refs/heads/master 04cd1ed28 -> 63e09352f


[#6480] move html2text import inline, so file can be imported even if not installed


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

Branch: refs/heads/master
Commit: 63e09352faba33a3935e155c5f6bf29d1c28989d
Parents: 04cd1ed
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Aug 7 17:50:35 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Aug 7 17:50:35 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/63e09352/Allura/allura/scripts/trac_export.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/trac_export.py b/Allura/allura/scripts/trac_export.py
index bce548e..e45175b 100644
--- a/Allura/allura/scripts/trac_export.py
+++ b/Allura/allura/scripts/trac_export.py
@@ -30,7 +30,6 @@ from itertools import islice
 from datetime import datetime
 
 import feedparser
-from html2text import html2text
 from BeautifulSoup import BeautifulSoup, NavigableString
 import dateutil.parser
 import pytz
@@ -141,6 +140,7 @@ class TracExport(object):
 
     def parse_ticket_comments(self, id):
         # Use RSS export to get ticket comments
+        from html2text import html2text
         url = self.full_url(self.TICKET_URL % id, 'rss')
         self.log_url(url)
         d = feedparser.parse(url)


Mime
View raw message