[New-bugs-announce] [issue22064] Misleading message from 2to3 when skipping optional fixers

Nick Coghlan report at bugs.python.org
Fri Jul 25 08:20:22 CEST 2014

New submission from Nick Coghlan:

>From https://stackoverflow.com/questions/5499897/converting-selenium-py-to-python-3-by-2to3, 2to3 prints the following messages when run:

RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma

That message is rather misleading - those four are the *optional* fixers that are only run when selected explicitly. Unlike the other fixers, they're essentially the *opposite* of implicit :)

Given that limiting the fixes to a specific subset (e.g. "-f dict") silences all such messages, and explicitly excluding an actual implicit fixer (e.g. "-x dict") doesn't generate a warning, I suggest the simplest fix is to just change the message to instead say "Skipping optional fixer".

keywords: easy
messages: 223919
nosy: ncoghlan
priority: low
severity: normal
stage: needs patch
status: open
title: Misleading message from 2to3 when skipping optional fixers
type: behavior

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list