Help!

Bug#671871: python-html5lib: AssertionError when parsing /..

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist RSS
Next:  [PATCH] power_supply: pda_power: Complain if regu..  
Author Message
Jakub Wilk
External


Since: Feb 09, 2010
Posts: 448



PostPosted: Mon May 07, 2012 3:10 pm    Post subject: Bug#671871: python-html5lib: AssertionError when parsing /dev/null
Archived from groups: linux>debian>bugs>dist (more info?)


Package: python-html5lib
Version: 0.90-2

$ python -c 'import sys, html5lib as h; h.parse(sys.stdin)' < /dev/null
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/html5lib/html5parser.py", line 38, in parse
return p.parse(doc, encoding=encoding)
File "/usr/lib/pymodules/python2.7/html5lib/html5parser.py", line 211, in parse
parseMeta=parseMeta, useChardet=useChardet)
File "/usr/lib/pymodules/python2.7/html5lib/html5parser.py", line 106, in _parse
useChardet=useChardet, **kwargs)
File "/usr/lib/pymodules/python2.7/html5lib/tokenizer.py", line 44, in __init__
self.stream = HTMLInputStream(stream, encoding, parseMeta, useChardet)
File "/usr/lib/pymodules/python2.7/html5lib/inputstream.py", line 159, in __init__
self.charEncoding = self.detectEncoding(parseMeta, chardet)
File "/usr/lib/pymodules/python2.7/html5lib/inputstream.py", line 207, in detectEncoding
encoding = self.detectBOM()
File "/usr/lib/pymodules/python2.7/html5lib/inputstream.py", line 285, in detectBOM
self.rawStream.seek(encoding and seek or 0)
File "/usr/lib/pymodules/python2.7/html5lib/inputstream.py", line 50, in seek
assert pos < self._bufferedBytes()
AssertionError


-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-Cool
Shell: /bin/sh linked to /bin/dash

Versions of packages python-html5lib depends on:
ii python 2.7.2-10
ii python-support 1.0.14

Versions of packages python-html5lib suggests:
ii python-beautifulsoup <none>
ii python-chardet 2.0.1-2
ii python-genshi <none>
ii python-lxml 2.3.2-1

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum