[Python-porting] HTMLParser in 2to3

see csad7 at t-online.de
Tue Dec 16 20:35:11 CET 2008


Benjamin Peterson wrote:
> On Mon, Dec 15, 2008 at 4:44 PM, Brett Cannon <brett at python.org> wrote:
>   
>> On Mon, Dec 15, 2008 at 12:18, see <csad7 at t-online.de> wrote:
>>     
>>> hi,
>>> (hope this is the right forum for this kind of question...)
>>>
>>> While testing the 2to3 tool for a lib of mine I noticed imports for
>>> HTMLParser seem not to be changed yet.
>>>
>>>       
>> Please file a bug report at http://bugs.python.org so this doesn't get lost.
>>     
>
> Don't bother filing a report; this is fixed in the 2to3 trunk:
>
> $ ./2to3 -
> RefactoringTool: Skipping implicit fixer: buffer
> RefactoringTool: Skipping implicit fixer: idioms
> RefactoringTool: Skipping implicit fixer: set_literal
> RefactoringTool: Skipping implicit fixer: ws_comma
> import HTMLParser
> from HTMLParser import HTMLParser
> --- <stdin> (original)
> +++ <stdin> (refactored)
> @@ -1,2 +1,2 @@
> -import HTMLParser
> -from HTMLParser import HTMLParser
> +import html.parser
> +from html.parser import HTMLParser
> RefactoringTool: Files that need to be modified:
> RefactoringTool: <stdin>
>   
great, thanks.

BTW, will the 2to3 tool be released in other cycles than Py3k, guess not 
every small bugfix will trigger a full release...
So I guess my question would be, is there a separate download somewhere?

Chris



More information about the Python-porting mailing list