anatoly techtonik

Results 330 comments of anatoly techtonik

@graingert I see this project became derived from `fissix`, which need more docs to understand what is `latest lib2to3` and what are `enhancements`.

Why not just return `1` if changes are required and `--write` is not specified?

Find a replacement to 2to3 that has better documentation and support? http://www.astroid.org/

Most likely that 2to3 need to be opened in binary mode for writing. https://github.com/python/cpython/blob/master/Lib/lib2to3/refactor.py#L527 (write_file)

@daira why not just read input file as binary? You will get the strings, but without any newline transformations.

So, it looks like subclassing of `lib2to3.RefactoringTool` is required.

It is easy to do once, but not every single time. So, how about hack to read the linefeed stats when "-w" is supplied and rewrite of the file after...

https://github.com/python/cpython/blob/master/Lib/lib2to3/refactor.py#L540 explicitly converts file to system-specific newlines without any option to turn this off! What is the ill logic behind that?

@daira you can take my patch and work on top of it.