1. Joe Amenta
  2. lib3to2

Commits

Author Commit Message Date Builds
Joe Amenta
Adding support for importing packages from a list. Moving all replacement imports for a single name_import into a list with a comma At this point, fix_imports2 is suitable for normal use
Joe Amenta
porting the previous fix to the alternate formatting version
Joe Amenta
Name imports appear to work now
Joe Amenta
Fixing the import part of name imports (import urllib.request)
Joe Amenta
Adding the previous change to the alternate-formatting version of fix_imports2
Joe Amenta
Fixing a list of names imported from a single module
Joe Amenta
Adding fix_imports2 for alternate string formatting Also fixing the python2 build so that main.py runs on 2.5
Joe Amenta
fix_imports2 pattern is much, much more efficient.
Joe Amenta
Made significant performance and size enhancements to the fix_imports2 pattern.
Joe Amenta
Disappearing backslash continuation
Joe Amenta
Shrinking the generated pattern, re-commenting for relevance to fix_imports2. Using a generator to build the pattern
Joe Amenta
Renaming fix_imports2 tests and disabling the ones that I don't currently plan on implementing.
Joe Amenta
(minor style change) removing a small redundancy...
Joe Amenta
Style changes: removing placeholder comment block / line width
Joe Amenta
Implementing the first round of changes to fix_imports2 that passes some tests 'from name.attr import *' and 'from name.attr import one_thing' appear to work.
Joe Amenta
Broadening import_binding_scope() to include more nodes.
Joe Amenta
Adding tests to drive fix_imports2 development. This is going to be really hard, as more elements of semantics are needed than I initially thought. As it is, I've already decided that a few things that would be prohibitively difficult to implement.
Joe Amenta
Added a generator that yields nodes in scope of a given import statement. Also added some comment blocks pointing out where what needs to happen.
Joe Amenta
Switching to checking only for documented members of a given module
Joe Amenta
fix_imports2 matches imports now. Generates a HUGE pattern with all the possible things that can be imported from a given module. Runs insanely slow as a result.
Joe Amenta
Scrapping the old fix_imports2 for the stub of a rewrite.
Joe Amenta
Fixing fix_print for backporting 3to2 to python 2.5 With a sufficiently recent version of lib2to3, 3to2'ed lib3to2 now passes all the same unit tests on Python 2.5.
Joe Amenta
Added a patch and Makefile for providing python2 releases. "make python2" will modify the working directory, so only use this on an expendable checkout of 3to2. It's possible to use the local version of 3to2, but for now the Makefile requires 3to2 installed.
Joe Amenta
Fixing number of arguments in the fix_imports that uses % string formatting
Joe Amenta
Fixing a change that should have been made in 199:8bac1315b3e3 and 197:c031a2962923 I failed at converting over changesets from a different repository, and these files made it into this one totally blank, somehow.
Joe Amenta
Fixing a change that should have been made in 197:c031a2962923
Joe Amenta
Importing from the local directory instead of a package for tests Another commit in a long line of trying to get test cases to work right...
Joe Amenta
Changing the filenames for the imports changes Also adding in some of the changes from lib2to3's main.py
Joe Amenta
Newline at end of makefile...
Joe Amenta
Symlinking fix_imports.py to fix_imports_py3k.py for the py3k branch
  1. Prev
  2. Next