]> git.phdru.name Git - bookmarks_db.git/commitdiff
Changed the order or parser according to their success rate.
authorOleg Broytman <phd@phdru.name>
Sun, 18 Dec 2011 17:48:28 +0000 (17:48 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 18 Dec 2011 17:48:28 +0000 (17:48 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@352 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

parse_html/bkmk_parse_html.py

index e1d4710f4da4851009202bb89ef028a714bb59b7..014f477aed22c219d3644ce2f47ab6d2fd18b4b0 100644 (file)
@@ -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: