Commit graph

16 commits

Author SHA1 Message Date
Keyan Pishdadian
a7bf11468d 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
2cf76517bd Update comments to reflect new functionality 2015-02-15 19:09:08 -05:00
Keyan Pishdadian
bfb4d4f8f6 Update comments to reflect new functionality 2015-02-14 18:16:28 -05:00
Keyan Pishdadian
91649f5bd6 Add test and logic for attribute access calls 2015-02-13 18:40:41 -05:00
Keyan Pishdadian
a058091680 Remove hardcoded 'foo' 2015-02-13 16:02:37 -05:00
Keyan Pishdadian
6ec7431773 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
02cd3ea671 Add a test and cover edge case with parens 2015-02-12 16:41:57 -05:00
Keyan Pishdadian
3c9a97ce14 Add test for naming module and fix logic to cover 2015-02-12 11:58:38 -05:00
Keyan Pishdadian
2630ace9ef Fix issue with wrapper logic 2015-02-11 15:22:07 -05:00
Keyan Pishdadian
77668e1d65 Change wrapper logic for testing 2015-02-11 14:53:39 -05:00
Keyan Pishdadian
f0ba70cda4 Add wrapper for testing fixing functionality 2015-02-11 14:41:48 -05:00
Keyan Pishdadian
fb9ba1d76d 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
3ae34f782f Cleanup 2015-02-11 13:29:50 -05:00
Keyan Pishdadian
38c8f47d46 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
508614fed2 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
0104498ffa 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