Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merged revisions 78242 via svnmerge from | Brett Cannon | 2010-02-19 | 1 | -24/+99 |
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78242 | brett.cannon | 2010-02-19 11:01:06 -0500 (Fri, 19 Feb 2010) | 5 lines Importlib was not matching import's handling of .pyc files where it had less then 8 bytes total in the file. Fixes issues 7361 & 7875. ........ | ||||
* | Merged revisions 76146 via svnmerge from | Brett Cannon | 2009-11-07 | 1 | -0/+26 |
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76146 | brett.cannon | 2009-11-07 15:55:05 -0800 (Sat, 07 Nov 2009) | 6 lines When trying to write new bytecode, importlib was not catching the IOError thrown if the file happened to be read-only to keep the failure silent. Fixes issue #7187. Thanks, Dave Malcolm for the report and analysis of the problem. ........ | ||||
* | Merged revisions 76113-76114 via svnmerge from | Brett Cannon | 2009-11-05 | 1 | -13/+10 |
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76113 | brett.cannon | 2009-11-04 17:17:22 -0800 (Wed, 04 Nov 2009) | 3 lines importlib.test.source.util referenced variables in the 'finally' part of a try/finally which may not have been set. ........ r76114 | brett.cannon | 2009-11-04 17:26:57 -0800 (Wed, 04 Nov 2009) | 6 lines Use tempfile.mkdtemp() instead of tempfile.tempdir for where importlib places source files for tests. Allows for concurrent execution of the tests by preventing various executions from trampling each other. Closes issue #7248. ........ | ||||
* | Merged revisions 74584 via svnmerge from | Brett Cannon | 2009-08-30 | 1 | -4/+14 |
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74584 | brett.cannon | 2009-08-29 20:47:36 -0700 (Sat, 29 Aug 2009) | 3 lines Have importlib raise ImportError if None is found in sys.modules. This matches current import semantics. ........ | ||||
* | Merged revisions 73715 via svnmerge from | Georg Brandl | 2009-08-13 | 18 | -84/+84 |
| | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........ | ||||
* | Merged revisions 74107 via svnmerge from | Brett Cannon | 2009-07-20 | 1 | -14/+61 |
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74107 | brett.cannon | 2009-07-19 20:19:18 -0700 (Sun, 19 Jul 2009) | 8 lines Importlib's documentation said that importlib.abc.PyLoader inherited from importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit as documented. This does in introduce an backwards-incompatiblity as the code in PyLoader already required the single method ResourceLoader defined as an abstract method. ........ | ||||
* | Backport of r74103. | Brett Cannon | 2009-07-20 | 1 | -8/+8 |
| | |||||
* | Fixup/simplify another nested context manager. | Raymond Hettinger | 2009-06-12 | 1 | -6/+3 |
| | |||||
* | Tests for case-senstivity were not being skipped for darwin when installed on a | Brett Cannon | 2009-05-11 | 6 | -45/+37 |
| | | | | | | | case-sensitive filesystems -- which is not the default case. Along the way also fixed the skipping of tests when sys.dont_write_bytecode is true. Closes issue #5442 again. | ||||
* | fix name again | Benjamin Peterson | 2009-04-04 | 1 | -1/+1 |
| | |||||
* | fix name | Benjamin Peterson | 2009-04-04 | 1 | -1/+1 |
| | |||||
* | fix naming | Benjamin Peterson | 2009-04-03 | 1 | -3/+3 |
| | |||||
* | os.path.listdir -> os.listdir | Benjamin Peterson | 2009-04-03 | 1 | -1/+1 |
| | |||||
* | importlib.test.source.test_abc_loader was making a bad assumption that all file | Brett Cannon | 2009-04-02 | 1 | -16/+21 |
| | | | | | | paths used '/' as a path separator. Fixes issue #5646. | ||||
* | Make a test in importlib have a more robust test value. | Brett Cannon | 2009-04-02 | 1 | -1/+1 |
| | |||||
* | Give a more informative message on an importlib test upon failure. | Brett Cannon | 2009-04-02 | 1 | -1/+3 |
| | |||||
* | Check that on a platform that is expected to have a case-insensitive filesystem | Brett Cannon | 2009-04-02 | 1 | -1/+8 |
| | | | | | | that is in fact the case. Closes issue #5442. | ||||
* | Fix importlib.machinery.PathFinder.find_module() to essentially skip over None | Brett Cannon | 2009-03-30 | 1 | -0/+19 |
| | | | | | | entries in sys.path_importer_cache. While this differs from semantics in how __import__ works, it prevents any implicit semantics from taking hold with users. | ||||
* | Add simple tests for __import__ for future optimizations to importlib. | Brett Cannon | 2009-03-30 | 1 | -0/+82 |
| | |||||
* | Implement InspectLoader for FrozenImporter. | Brett Cannon | 2009-03-15 | 1 | -1/+35 |
| | |||||
* | Implement InspectLoader for BuiltinImporter. | Brett Cannon | 2009-03-15 | 3 | -16/+48 |
| | |||||
* | A few more docstring/API cleanups for importlib. | Brett Cannon | 2009-03-15 | 1 | -1/+1 |
| | |||||
* | Finish properly hiding importlib implementation code. | Brett Cannon | 2009-03-12 | 9 | -28/+34 |
| | |||||
* | Implement importlib.util.set_loader: a decorator to automatically set | Brett Cannon | 2009-03-10 | 3 | -4/+9 |
| | | | | __loader__ on modules. | ||||
* | Implement get_source for importlib.abc.PyLoader using source_path and get_data. | Brett Cannon | 2009-03-10 | 1 | -9/+32 |
| | |||||
* | Introduce importlib.abc. The module contains various ABCs related to imports | Brett Cannon | 2009-03-09 | 5 | -98/+438 |
| | | | | | | | (mostly stuff specified by PEP 302). There are two ABCs, PyLoader and PyPycLoader, which help with implementing source and source/bytecode loaders by implementing load_module in terms of other methods. This removes a lot of gritty details loaders typically have to worry about. | ||||
* | Remove a dead XXX comment. | Brett Cannon | 2009-03-09 | 1 | -1/+0 |
| | |||||
* | Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode. | Brett Cannon | 2009-03-09 | 1 | -1/+5 |
| | |||||
* | Skip case-sensitivity tests for extension modules if _testcapi cannot be found. | Brett Cannon | 2009-03-08 | 1 | -0/+2 |
| | |||||
* | Rename importlib.util.set___package__ to set_package. | Brett Cannon | 2009-03-04 | 1 | -3/+3 |
| | |||||
* | Add a test for importlib.import_module. | Brett Cannon | 2009-03-04 | 1 | -1/+10 |
| | |||||
* | Expose importlib.util.set___package__. | Brett Cannon | 2009-03-02 | 1 | -1/+50 |
| | |||||
* | Refactor source and bytecode file loaders in importlib so that there | Brett Cannon | 2009-02-21 | 2 | -13/+13 |
| | | | | are source-only and source/bytecode loaders. | ||||
* | Separate out finder for source and source/bytecode. | Brett Cannon | 2009-02-21 | 2 | -2/+2 |
| | |||||
* | Do some cleanup in importlib: | Brett Cannon | 2009-02-21 | 7 | -9/+9 |
| | | | | | | | + Ditch using arguments to super(). + Ditch subclassing from object directly. + Move directory check out of chaining path hook to file path hook/finder. + Rename some classes to better reflect they are finders, not importers. | ||||
* | Implement the more specific PEP 302 semantics for loaders and what happens upon | Brett Cannon | 2009-02-17 | 1 | -0/+69 |
| | | | | | | load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely. | ||||
* | Change importlib.machinery.PathFinder to not have implicit semantics (that's | Brett Cannon | 2009-02-15 | 2 | -34/+35 |
| | | | | not handled by importlib._bootstrap._DefaultPathFinder). | ||||
* | Add the missing importlib.test.extension.util. | Brett Cannon | 2009-02-07 | 1 | -0/+21 |
| | |||||
* | Factor out helper code from importlib.test.extension.test_path_hook. | Brett Cannon | 2009-02-07 | 5 | -40/+21 |
| | |||||
* | Move importlib completely over to using rpartition and accepting the empty | Brett Cannon | 2009-02-07 | 2 | -2/+3 |
| | | | | string for top-level modules. | ||||
* | Move importlib's built-in importer to use rpartition for __package__. | Brett Cannon | 2009-02-07 | 1 | -1/+1 |
| | |||||
* | Move importlib's frozen importer over to rpartition for setting __package__. | Brett Cannon | 2009-02-07 | 1 | -1/+1 |
| | |||||
* | Rewrite the code implementing __import__ for importlib. Now it is much simpler | Brett Cannon | 2009-02-07 | 5 | -150/+15 |
| | | | | | | | | | and relies much more on meta path finders to abstract out various parts of import. As part of this the semantics for import_module tightened up and now follow __import__ much more closely (biggest thing is that the 'package' argument must now already be imported, else a SystemError is raised). | ||||
* | Finish implementing tests for importlib.machinery.PathFinder by testing that | Brett Cannon | 2009-02-06 | 1 | -4/+19 |
| | | | | implicit hooks are handled properly. | ||||
* | Add tests for using sys.path_hooks by importlib.machinery.PathFinder. | Brett Cannon | 2009-02-05 | 1 | -2/+10 |
| | |||||
* | Implement test for sys.path_importer_cache having None for | Brett Cannon | 2009-02-05 | 1 | -2/+14 |
| | | | | importlib.machinery.PathFinder. | ||||
* | Begin writing tests for importlib.machinery.PathFinder. | Brett Cannon | 2009-02-05 | 1 | -1/+57 |
| | |||||
* | Move import semantic util code to importlib.test.import_.util. | Brett Cannon | 2009-02-01 | 9 | -88/+99 |
| | |||||
* | Rename importlib.test.support to importlib.test.util. | Brett Cannon | 2009-02-01 | 21 | -191/+159 |
| | |||||
* | Do not execute the .pyc/.pyo files as well as the .py files. | Brett Cannon | 2009-02-01 | 1 | -1/+4 |
| |