Hey Armin,

the generated file-names are a bit broken because the script generates
them like this:

 --- a/./tests/utils/test_confirm.py
+++ b/./tests/utils/test_confirm.py

But the leading dot confuses `hg import` and let it abort.  Removing
this dot let's the hg import script work perfectly.  The `patch`
utility takes both diffs perfectly.

Next to that the tool should rely on the _ast module or something
similar as it rewrites docstrings too and mostly wrong.  See
http://paste.pocoo.org/show/YhkxyQKfyRXs5jSo2JRe/ for example.

Regards,
Christopher.

On Jan 2, 1:39 pm, Armin Ronacher <[email protected]> wrote:
> Hey everybody,
>
> Starting with Werkzeug 0.7 we will recommend against importing directly
> from werkzeug but instead from the modules the objects and functions are
> implemented in.  We have not yet finalized the locations of where the
> functions should ultimately reside in, but that is not relevant for the
> tool that should help the transition.
>
> I wrote an early version of it and added it to the Werkzeug github
> repository [1].  You run the script and point it to one or more folders
> and it will spit out an unified diff with the imports changed.
>
> By design it also operates on comments and docstrings.
>
> Please let me know if it breaks on your application and how to trigger
> the problem.
>
> Regards,
> Armin
>
> [1]:http://bit.ly/gLFTt5

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to