A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00364.html below:

insertDoctype() takes exactly 4 arguments (2 given)

Status: New
Owner: ----

New issue 107 by matburnham: TypeError: insertDoctype() takes exactly 4  
arguments (2 given)
http://code.google.com/p/html5lib/issues/detail?id=107
Running Python 2.5.2 with revision b7f2a61b8b4b of html5lib, the following
test case causes the exception which follows:

import html5lib
import urllib2

url = 'http://www.google.com'
opener = urllib2.build_opener()
page = opener.open(url)
parser =
html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("beautifulsoup"))
soup = parser.parse(page.read())


Traceback (most recent call last):
   File "test.py", line 12, in <module>
     soup = parser.parse(page.read())
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 196, in
parse
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 94, in
_parse
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 174, in
mainLoop
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 473, in
processDoctype
TypeError: insertDoctype() takes exactly 4 arguments (2 given)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to html5lib-discuss@googlegroups.com
 To unsubscribe from this group, send email to 
html5lib-discuss+unsubscr...@googlegroups.com
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4