This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson, loewis
Date 2008-11-26.17:35:49
SpamBayes Score 1.4186604e-07
Marked as misclassified No
Message-id <1afaf6160811260935l23b1faa6kf3b4aaff407d5755@mail.gmail.com>
In-reply-to <492CF084.4090707@v.loewis.de>
Content
On Wed, Nov 26, 2008 at 12:45 AM, Martin v. Löwis
<report@bugs.python.org> wrote:
>
> Martin v. Löwis <martin@v.loewis.de> added the comment:
>
>> This is true of many fixers. What is the use case?
>
> In this case, I wanted to work around the fixer working incorrectly
> for commands, but still have it continue to work for all the other
> modules it fixes. The context is the setup.py script of Django.

I wonder if a better way would be to configure the imports fixer
through the options dict passed to RefactoringTool. i.e.

 RefactoringTool(..., {"fix_imports:dont_transform" : ["commands",
"other_module"]})
History
Date User Action Args
2008-11-26 17:35:51benjamin.petersonsetrecipients: + benjamin.peterson, loewis
2008-11-26 17:35:50benjamin.petersonlinkissue4423 messages
2008-11-26 17:35:49benjamin.petersoncreate