html5lib / gcode-import

Automatically exported from code.google.com/p/html5lib. Purely archival.
Other
7 stars 8 forks source link

broken html5lib in trunk (default) #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On code from tutorial right now you will get error like:

Traceback (most recent call last):
  File "./test_tokenizer_speed.py", line 29, in <module>
    main()
  File "./test_tokenizer_speed.py", line 19, in main
    dom_tree = p.parse(f, encoding='utf-8')
  File "/home/kost/src/html5lib-broken-default/python/html5lib/html5parser.py", line 213, in parse
    parseMeta=parseMeta, useChardet=useChardet)
  File "/home/kost/src/html5lib-broken-default/python/html5lib/html5parser.py", line 110, in _parse
    parser=self, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'parser'

Patch attached

Original issue reported on code.google.com by kos...@gmail.com on 9 Jun 2011 at 9:42

Attachments:

GoogleCodeExporter commented 9 years ago
Hello, has this been fixed in the new release? Once we upgraded html5lib from 
0.90 to 0.95 we have this issue.

For now we have hardcoded the requirement to 0.90. Are we doing something wrong 
or this is a bug in the library?

Thanks.

Original comment by evgeny.f...@gmail.com on 22 Feb 2012 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by geoffers on 10 Apr 2013 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by geoffers on 4 May 2013 at 9:22