Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #14500: Fix importlib.test.import_.test_packages to clean up | Brett Cannon | 2012-04-06 | 1 | -1/+5 |
| | | | | after itself properly. | ||||
* | If a module injects something into sys.modules as a side-effect of | Brett Cannon | 2012-04-03 | 2 | -0/+16 |
| | | | | | | | | importation, then respect that injection. Discovered thanks to Lib/xml/parsers/expat.py injecting xml.parsers.expat.errors and etree now importing that directly as a module. | ||||
* | Remove a dead docstring. | Brett Cannon | 2012-03-02 | 1 | -6/+0 |
| | |||||
* | Update importlib.invalidate_caches() to be more general. | Brett Cannon | 2012-02-27 | 4 | -35/+50 |
| | |||||
* | unused imports, pep8 | Philip Jenvey | 2012-02-25 | 2 | -12/+12 |
| | |||||
* | Simplify importib._resolve_name(). | Brett Cannon | 2012-02-24 | 1 | -11/+5 |
| | |||||
* | Turn _return_module() into _handle_fromlist(). | Brett Cannon | 2012-02-24 | 1 | -25/+25 |
| | |||||
* | Make the benchmark recording more sensible for importlib.test.benchmark. | Brett Cannon | 2012-02-24 | 1 | -29/+27 |
| | |||||
* | Improper type for __package__ should raise TypeError, not ValueError. | Brett Cannon | 2012-02-23 | 2 | -2/+2 |
| | |||||
* | Do a type check instead of an interface check. | Brett Cannon | 2012-02-23 | 1 | -2/+2 |
| | |||||
* | Refactor importlib to make it easier to re-implement in C. | Brett Cannon | 2012-02-22 | 1 | -45/+31 |
| | |||||
* | Issue #14077: importlib: Fix regression introduced by de6703671386. | Charles-François Natali | 2012-02-22 | 1 | -3/+6 |
| | |||||
* | Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems | Antoine Pitrou | 2012-02-20 | 1 | -11/+15 |
| | | | | (regression) | ||||
* | put docstrings on functions | Benjamin Peterson | 2012-02-20 | 1 | -2/+2 |
| | |||||
* | _relax_case -> _make_relax_case | Antoine Pitrou | 2012-02-20 | 1 | -3/+4 |
| | |||||
* | Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new ↵ | Antoine Pitrou | 2012-02-20 | 3 | -50/+69 |
| | | | | | | importlib.invalidate_caches() function. importlib is now often faster than imp.find_module() at finding modules. | ||||
* | Fix a failing importlib test under Windows. | Brett Cannon | 2012-02-20 | 1 | -1/+2 |
| | | | | Closes issue #14054. | ||||
* | Fix importlib.test.__main__ to only worry about command-line flags when ↵ | Brett Cannon | 2012-02-17 | 1 | -8/+9 |
| | | | | directly executed. | ||||
* | Optimize importlib's case-sensitivity check by wasting as little time as ↵ | Brett Cannon | 2012-02-17 | 1 | -13/+23 |
| | | | | possible under case-sensitive OSs. | ||||
* | Have importlib.test use argparse instead of some hacked up solution. | Brett Cannon | 2012-02-17 | 1 | -3/+8 |
| | |||||
* | Have importlib use os.replace() for atomic renaming. | Brett Cannon | 2012-02-17 | 1 | -17/+6 |
| | | | | Closes issue #13961. Thanks to Charles-François Natali for the patch. | ||||
* | Tweak the handling of the empty string in sys.path for importlib. | Brett Cannon | 2012-02-16 | 2 | -2/+4 |
| | | | | | | | It seems better to cache the finder for the cwd under its full path insetad of '' in case the cwd changes. Otherwise FileFinder needs to dynamically change itself based on whether it is given '' instead of caching a finder for every change to the cwd. | ||||
* | importlib.__import__() now raises ValueError when level < 0. | Brett Cannon | 2012-02-16 | 2 | -0/+9 |
| | | | | | This is to bring it more in line with what PEP 328 set out to do with removing ambiguous absolute/relative import semantics. | ||||
* | Refactor importlib.__import__() and _gcd_import() to facilitate using | Brett Cannon | 2012-02-16 | 1 | -71/+130 |
| | | | | | an __import__ implementation that takes care of basics in C and punts to importlib for more complicated code. | ||||
* | Bring importlib in line w/ changes made in my personal bootstrap branch in ↵ | Brett Cannon | 2012-02-14 | 1 | -1/+15 |
| | | | | the sandbox. | ||||
* | simplify | Philip Jenvey | 2012-02-10 | 1 | -4/+1 |
| | |||||
* | Undo a bad mq management thingy. | Brett Cannon | 2012-02-09 | 1 | -44/+0 |
| | |||||
* | Whitespace normalization. | Brett Cannon | 2012-02-08 | 1 | -1/+0 |
| | |||||
* | Use the cwd when the empty string is found in sys.path. This leads to | Brett Cannon | 2012-02-08 | 2 | -1/+55 |
| | | | | | __file__ being an absolute path when the module is found in the current directory. | ||||
* | Move setup code from importlib.__init__ to | Brett Cannon | 2012-02-08 | 2 | -27/+47 |
| | | | | importlib._bootstrap._setup(). | ||||
* | Don't fail in the face of a lacking attribute when wrapping a | Brett Cannon | 2012-02-08 | 1 | -1/+2 |
| | | | | function. | ||||
* | Re-order importlib benchmarks to be consistent. Also print out what ↵ | Brett Cannon | 2012-02-07 | 1 | -6/+8 |
| | | | | implementation of __import__ is used. | ||||
* | Have importlib.test.benchmark test with tabnanny as a medium-sized test. | Brett Cannon | 2012-02-07 | 1 | -32/+58 |
| | |||||
* | Fix a minor output typo as found by Terry Reedy. | Brett Cannon | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | Let importlib.test.benchmark take a specific benchmark name to run. | Brett Cannon | 2012-01-31 | 1 | -3/+18 |
| | |||||
* | Allow for the specification of a file to dump importlib benchmark | Brett Cannon | 2012-01-31 | 1 | -10/+36 |
| | | | | | | results to (and to compare against previous runs). * * * Move importlib.test.benchmark to argparse. | ||||
* | Issue #13890: Also fix for extension module tests for case-insensitivity. | Brett Cannon | 2012-01-30 | 1 | -0/+6 |
| | |||||
* | Issue #13890: Fix importlib case-sensitivity tests to not run on Windows. | Brett Cannon | 2012-01-30 | 1 | -0/+6 |
| | | | | | | | Thanks to os.environ under Windows only updating the dict and not the environment itself (as exposed by nt.environ), tests using PYTHONCASEOK always fail. Now the tests are skipped when os.environ does not do what is expected. | ||||
* | Relocate importlib._case_ok to importlib._bootstrap. | Brett Cannon | 2012-01-27 | 2 | -19/+27 |
| | | | | | | | This required updating the code to use posix instead of os. This is all being done to make bootstrapping easier to removing dependencies that are kept in importlib.__init__ and thus outside of the single file to bootstrap from. | ||||
* | Move some code from importlib.__init__ to importlib._bootstrap that | Brett Cannon | 2012-01-25 | 4 | -42/+52 |
| | | | | does not need to be exposed from C code for bootstrapping reasons. | ||||
* | Port import fixes from 2.7. | Antoine Pitrou | 2012-01-25 | 1 | -1/+1 |
|\ | |||||
| * | Port import fixes from 2.7. | Antoine Pitrou | 2012-01-25 | 1 | -1/+1 |
| | | |||||
* | | Port remaining test fixes, and fix test_importlib too. | Antoine Pitrou | 2012-01-25 | 1 | -1/+9 |
|\ \ | |/ | |||||
| * | Port remaining test fixes, and fix test_importlib too. | Antoine Pitrou | 2012-01-25 | 1 | -1/+9 |
| | | |||||
* | | Issue #11235: Fix OverflowError when trying to import a source file whose ↵ | Antoine Pitrou | 2012-01-24 | 1 | -0/+17 |
|\ \ | |/ | | | | | modification time doesn't fit in a 32-bit timestamp. | ||||
| * | Issue #11235: Fix OverflowError when trying to import a source file whose ↵ | Antoine Pitrou | 2012-01-24 | 1 | -0/+17 |
| | | | | | | | | modification time doesn't fit in a 32-bit timestamp. | ||||
* | | Issue #13588: Rename decorators in importlib. | Brett Cannon | 2012-01-16 | 1 | -18/+18 |
| | | | | | | | | | | More descriptive names are now used in order to make tracebacks more readable. | ||||
* | | kill useless import added by 87331661042b | Benjamin Peterson | 2012-01-16 | 1 | -1/+0 |
| | | |||||
* | | Issue #13645: pyc files now contain the size of the corresponding source | Antoine Pitrou | 2012-01-13 | 4 | -31/+95 |
| | | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode. | ||||
* | | Fix no-op tests in importlib. | Antoine Pitrou | 2011-12-30 | 1 | -0/+4 |
|\ \ | |/ |