summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14500: Fix importlib.test.import_.test_packages to clean upBrett Cannon2012-04-061-1/+5
| | | | after itself properly.
* If a module injects something into sys.modules as a side-effect ofBrett Cannon2012-04-032-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 Cannon2012-03-021-6/+0
|
* Update importlib.invalidate_caches() to be more general.Brett Cannon2012-02-274-35/+50
|
* unused imports, pep8Philip Jenvey2012-02-252-12/+12
|
* Simplify importib._resolve_name().Brett Cannon2012-02-241-11/+5
|
* Turn _return_module() into _handle_fromlist().Brett Cannon2012-02-241-25/+25
|
* Make the benchmark recording more sensible for importlib.test.benchmark.Brett Cannon2012-02-241-29/+27
|
* Improper type for __package__ should raise TypeError, not ValueError.Brett Cannon2012-02-232-2/+2
|
* Do a type check instead of an interface check.Brett Cannon2012-02-231-2/+2
|
* Refactor importlib to make it easier to re-implement in C.Brett Cannon2012-02-221-45/+31
|
* Issue #14077: importlib: Fix regression introduced by de6703671386.Charles-François Natali2012-02-221-3/+6
|
* Issue #14063: fix test_importlib failure under OS X case-insensitive filesystemsAntoine Pitrou2012-02-201-11/+15
| | | | (regression)
* put docstrings on functionsBenjamin Peterson2012-02-201-2/+2
|
* _relax_case -> _make_relax_caseAntoine Pitrou2012-02-201-3/+4
|
* Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new ↵Antoine Pitrou2012-02-203-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 Cannon2012-02-201-1/+2
| | | | Closes issue #14054.
* Fix importlib.test.__main__ to only worry about command-line flags when ↵Brett Cannon2012-02-171-8/+9
| | | | directly executed.
* Optimize importlib's case-sensitivity check by wasting as little time as ↵Brett Cannon2012-02-171-13/+23
| | | | possible under case-sensitive OSs.
* Have importlib.test use argparse instead of some hacked up solution.Brett Cannon2012-02-171-3/+8
|
* Have importlib use os.replace() for atomic renaming.Brett Cannon2012-02-171-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 Cannon2012-02-162-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 Cannon2012-02-162-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 usingBrett Cannon2012-02-161-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 Cannon2012-02-141-1/+15
| | | | the sandbox.
* simplifyPhilip Jenvey2012-02-101-4/+1
|
* Undo a bad mq management thingy.Brett Cannon2012-02-091-44/+0
|
* Whitespace normalization.Brett Cannon2012-02-081-1/+0
|
* Use the cwd when the empty string is found in sys.path. This leads toBrett Cannon2012-02-082-1/+55
| | | | | __file__ being an absolute path when the module is found in the current directory.
* Move setup code from importlib.__init__ toBrett Cannon2012-02-082-27/+47
| | | | importlib._bootstrap._setup().
* Don't fail in the face of a lacking attribute when wrapping aBrett Cannon2012-02-081-1/+2
| | | | function.
* Re-order importlib benchmarks to be consistent. Also print out what ↵Brett Cannon2012-02-071-6/+8
| | | | implementation of __import__ is used.
* Have importlib.test.benchmark test with tabnanny as a medium-sized test.Brett Cannon2012-02-071-32/+58
|
* Fix a minor output typo as found by Terry Reedy.Brett Cannon2012-01-311-1/+1
|
* Let importlib.test.benchmark take a specific benchmark name to run.Brett Cannon2012-01-311-3/+18
|
* Allow for the specification of a file to dump importlib benchmarkBrett Cannon2012-01-311-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 Cannon2012-01-301-0/+6
|
* Issue #13890: Fix importlib case-sensitivity tests to not run on Windows.Brett Cannon2012-01-301-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 Cannon2012-01-272-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 thatBrett Cannon2012-01-254-42/+52
| | | | does not need to be exposed from C code for bootstrapping reasons.
* Port import fixes from 2.7.Antoine Pitrou2012-01-251-1/+1
|\
| * Port import fixes from 2.7.Antoine Pitrou2012-01-251-1/+1
| |
* | Port remaining test fixes, and fix test_importlib too.Antoine Pitrou2012-01-251-1/+9
|\ \ | |/
| * Port remaining test fixes, and fix test_importlib too.Antoine Pitrou2012-01-251-1/+9
| |
* | Issue #11235: Fix OverflowError when trying to import a source file whose ↵Antoine Pitrou2012-01-241-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 Pitrou2012-01-241-0/+17
| | | | | | | | modification time doesn't fit in a 32-bit timestamp.
* | Issue #13588: Rename decorators in importlib.Brett Cannon2012-01-161-18/+18
| | | | | | | | | | More descriptive names are now used in order to make tracebacks more readable.
* | kill useless import added by 87331661042bBenjamin Peterson2012-01-161-1/+0
| |
* | Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou2012-01-134-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 Pitrou2011-12-301-0/+4
|\ \ | |/