You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/08/12 18:41:25 UTC
[40/50] git commit: [#6480] move html2text import inline,
so file can be imported even if not installed
[#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/cj/6422
Commit: 63e09352faba33a3935e155c5f6bf29d1c28989d
Parents: 04cd1ed
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Wed Aug 7 17:50:35 2013 +0000
Committer: Dave Brondsema <db...@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)