Commit graph

16 commits

Author SHA1 Message Date
Keyan Pishdadian
f6c45afb6f Add skip to fix unnoticed bug with good imports
Fixes logic so that imports that should not be changed are skipped, which was not happening correctly before.
2015-02-25 19:48:29 -05:00
Keyan Pishdadian
6fa1889afb Update comments to reflect new functionality 2015-02-15 19:09:08 -05:00
Keyan Pishdadian
5f64971731 Update comments to reflect new functionality 2015-02-14 18:16:28 -05:00
Keyan Pishdadian
cd6ec40947 Add test and logic for attribute access calls 2015-02-13 18:40:41 -05:00
Keyan Pishdadian
77ed466101 Remove hardcoded 'foo' 2015-02-13 16:02:37 -05:00
Keyan Pishdadian
4cb311b945 Add support for function call fixing, add tests
Addresses #1135, some code cleanup and refactoring. Changes wrapper function which handles testing, further modularized code, added test to cover function call fixing, and fixed duplicate test function name.
2015-02-13 15:27:29 -05:00
Keyan Pishdadian
9cbe83ef0d Add a test and cover edge case with parens 2015-02-12 16:41:57 -05:00
Keyan Pishdadian
b759aa2b95 Add test for naming module and fix logic to cover 2015-02-12 11:58:38 -05:00
Keyan Pishdadian
37217e85b8 Fix issue with wrapper logic 2015-02-11 15:22:07 -05:00
Keyan Pishdadian
96d81c297a Change wrapper logic for testing 2015-02-11 14:53:39 -05:00
Keyan Pishdadian
4a9e34a574 Add wrapper for testing fixing functionality 2015-02-11 14:41:48 -05:00
Keyan Pishdadian
c90c4e5e8c Support "import flask.ext.foo" format
New commit supports the above import format, however it does not fix function calls elsewhere in the source. Perhaps there should be an error or simply alert the user through stdout().
2015-02-11 14:29:04 -05:00
Keyan Pishdadian
61d5e6a4d4 Cleanup 2015-02-11 13:29:50 -05:00
Keyan Pishdadian
8488a3afa9 Change parsing format to use AST via RedBaron
Moved away from using manual parsing. Source is parsed using RedBaron to make the FST. Some import formats not yet implemented, and still some bugs to work out. However, the current script works well for the two cases in the file comments.
2015-02-11 13:07:24 -05:00
Keyan Pishdadian
0b2556f3ec Add lib2to3 fixer base code
Switching to using RedBaron instead of lib2to3, committing to save lib2to3 code in case using Baron is not successful.
2015-02-10 11:23:16 -05:00
Keyan Pishdadian
9d64ff420f Early commit for issue #1135
Add support migrating single imports from the flask.ext style to flask_
2015-02-06 14:38:33 -05:00