From f51dfd36f4fa565860ec20eb9f5c5fdac937276e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 18 Dec 2011 17:48:28 +0000 Subject: [PATCH] Changed the order or parser according to their success rate. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@352 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- parse_html/bkmk_parse_html.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parse_html/bkmk_parse_html.py b/parse_html/bkmk_parse_html.py index e1d4710..014f477 100644 --- a/parse_html/bkmk_parse_html.py +++ b/parse_html/bkmk_parse_html.py @@ -29,25 +29,25 @@ else: parsers.append(bkmk_ph_beautifulsoup.parse_html) try: - from . import bkmk_ph_htmlparser + from . import bkmk_ph_html5 except ImportError: pass else: - parsers.append(bkmk_ph_htmlparser.parse_html) + parsers.append(bkmk_ph_html5.parse_html) try: - from . import bkmk_ph_html5 + from . import bkmk_ph_lxml except ImportError: pass else: - parsers.append(bkmk_ph_html5.parse_html) + parsers.append(bkmk_ph_lxml.parse_html) try: - from . import bkmk_ph_lxml + from . import bkmk_ph_htmlparser except ImportError: pass else: - parsers.append(bkmk_ph_lxml.parse_html) + parsers.append(bkmk_ph_htmlparser.parse_html) # ElementTidy often segfaults #try: -- 2.39.5