[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread sean

New submission from sean:

NOTE: SAME AS Python 3.2.2, Python 3.3 from python.org/download

Python 3.2.2 Stackless 3.1b3 060516 (default, Feb 20 2012, 13:36:12) [MSC 
v.1500 32 bit (Intel)] on win32
Type copyright, credits or license() for more information.
 from html.parser import HTMLParser
 class LooseParser(HTMLParser):
def __init__(self, strict=False):
HTMLParser.__init__(self, strict=strict)
def handle_starttag(self, tag, attrs):
print('Tag:', tag)


 p = LooseParser()
 p.feed('phello/p')


--
components: Library (Lib)
messages: 179938
nosy: pysean
priority: normal
severity: normal
status: open
title: module html.parser HTMLParser's strict mode don't work
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16963
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread Ezio Melotti

Ezio Melotti added the comment:

It works for me on 3.2.3, 3.2.3+, 3.3.0+, 3.4.0a0
 from html.parser import HTMLParser
 class LooseParser(HTMLParser):
... def __init__(self, strict=False):
... HTMLParser.__init__(self, strict=strict)
... def handle_starttag(self, tag, attrs):
... print('Tag:', tag)
... 
 p = LooseParser()
 p.feed('phello/p')
Tag: p


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16963
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread sean

sean added the comment:

SAME AS
 #issue13273
http://bugs.python.org/issue13273

--
resolution:  - duplicate
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16963
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16963
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com