webcheck commit: r444 - webcheck/webcheck/parsers/html
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
webcheck commit: r444 - webcheck/webcheck/parsers/html
- From: Commits of the webcheck project <webcheck-commits [at] lists.arthurdejong.org>
- To: webcheck-commits [at] lists.arthurdejong.org
- Reply-to: webcheck-users [at] lists.arthurdejong.org
- Subject: webcheck commit: r444 - webcheck/webcheck/parsers/html
- Date: Fri, 7 Oct 2011 10:22:44 +0200 (CEST)
Author: arthur
Date: Fri Oct 7 10:22:43 2011
New Revision: 444
URL: http://arthurdejong.org/viewvc/webcheck?revision=444&view=revision
Log:
fix some remaining (previously relative) imports
Modified:
webcheck/webcheck/parsers/html/__init__.py
webcheck/webcheck/parsers/html/beautifulsoup.py
Modified: webcheck/webcheck/parsers/html/__init__.py
==============================================================================
--- webcheck/webcheck/parsers/html/__init__.py Fri Oct 7 10:16:50 2011
(r443)
+++ webcheck/webcheck/parsers/html/__init__.py Fri Oct 7 10:22:43 2011
(r444)
@@ -116,7 +116,7 @@
# call the tidy parse function
if webcheck.config.TIDY_OPTIONS:
try:
- import calltidy
+ import webcheck.parsers.html.calltidy
debugio.debug('webcheck.parsers.html.parse(): the Tidy parser is
ok')
calltidy.parse(content, link)
except ImportError:
Modified: webcheck/webcheck/parsers/html/beautifulsoup.py
==============================================================================
--- webcheck/webcheck/parsers/html/beautifulsoup.py Fri Oct 7 10:16:50
2011 (r443)
+++ webcheck/webcheck/parsers/html/beautifulsoup.py Fri Oct 7 10:22:43
2011 (r444)
@@ -40,7 +40,7 @@
# check BeautifulSoup find() function for bugs
if BeautifulSoup.BeautifulSoup('<foo>').find('foo', bar=True):
- import debugio
+ from webcheck import debugio
debugio.warn('using buggy version of BeautifulSoup (%s)' %
BeautifulSoup.__version__)
@@ -171,12 +171,12 @@
for style in soup.findAll('style'):
if style.string:
# delegate handling of inline css to css module
- import parsers.css
+ import webcheck.parsers.css
parsers.css.parse(htmlunescape(style.string), link, base)
# <ANY style="CSS">
for elem in soup.findAll(style=True):
# delegate handling of inline css to css module
- import parsers.css
+ import webcheck.parsers.css
parsers.css.parse(elem['style'], link, base)
# <script src="url">
for script in soup.findAll('script', src=True):
--
To unsubscribe send an email to
webcheck-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-commits/
- webcheck commit: r444 - webcheck/webcheck/parsers/html,
Commits of the webcheck project