| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
now detect Python source code encoding only in comment lines.
|
| |
|
|
|
|
|
| |
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
|
| |
|
|
|
|
|
|
| |
__loader__ for this test to succeed without a major changes. It also
doesn't test the original issue of modules imported by Py_Initialize()
having __loader__ set (the rest of the test covers that).
|
|
|
|
|
|
| |
scratch. This means they do not set __loader__ by default. This is
acceptable under importlib/PEP 302 definitions, so relax the test that
was trying to apply this universally.
|
|
|
|
| |
modules. Also made test more rigorous.
|
| |
|
|
|
|
|
|
|
|
| |
importlib.machinery.FileFinder when the directory has become
unreadable or a file. This brings semantics in line with Python 3.2
import.
Reported and diagnosed by David Pritchard.
|
| |
|
| |
|
|
|
|
| |
(actually, any non-string or non-bytes type).
|
|
|
|
|
| |
fromlist which causes its own ImportError (e.g. the module tries to
import a non-existent module) should have that exception propagate.
|
|
|
|
| |
conservativeness.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fromlist of __import__ propagate.
The problem previously was that if something listed in fromlist didn't
exist then that's okay. The fix for that was too broad in terms of
catching ImportError.
The trick with the solution to this issue is that the proper
refactoring of import thanks to importlib doesn't allow for a way to
distinguish (portably) between an ImportError because finders couldn't
find a loader, or a loader raised the exception. In Python 3.4 the
hope is to introduce a new exception (e.g. ModuleNotFound) to make it
clean to differentiate why ImportError was raised.
|
| |
|
|
|
|
|
| |
module again. Also took the opportunity to stop accidentally exporting
_imp.extension_suffixes() as public.
|
|
|
|
|
|
|
|
|
| |
state of the import system. Also make importlib.invalidate_caches()
work with sys.meta_path instead of sys.path_importer_cache to
completely separate the path-based import system from the overall
import system.
Patch by Eric Snow.
|
|
|
|
| |
the name into line with normal import terminology. Original patch by Eric Snow
|
|
|
|
| |
the import protocols given PEP 420. Original patch by Eric Snow.
|
| |
|
| |
|
|
|
|
|
| |
visible and to place it with other micro-benchmarks (e.g.
stringbench).
|
|
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
|