173 Commits (fe8440aec00af5bc2e995aaad205efa2e693a364)

Author SHA1 Message Date
Brett Cannon 2657df4744 Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 14 years ago
Brett Cannon efad00d520 Issue #14646: __import__() now sets __loader__ if need be. 14 years ago
Brett Cannon aa93642a35 Issue #14605: Use None in sys.path_importer_cache to represent no 14 years ago
Brett Cannon ce418b448f Issue #14605: Stop having implicit entries for sys.meta_path. 14 years ago
Brett Cannon e0d88a173c Issue #14605: Make explicit the entries on sys.path_hooks that used to 14 years ago
Marc-Andre Lemburg 4fe29c9657 Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader. 14 years ago
Marc-Andre Lemburg ac8805a01a Issue #14605: Revert renaming of _SourcelessFileLoader, since it caused 14 years ago
Marc-Andre Lemburg 2945e78b05 Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader 14 years ago
Brett Cannon 938d44d59c Issue #14605: Expose importlib.abc.FileLoader and 14 years ago
Brett Cannon 1032af95ff Issue #14585: test_import now runs all tests under 14 years ago
Brett Cannon 91900eaf96 Have importlib.test.regrtest clear sys.path_importer_cache to make 14 years ago
Benjamin Peterson d76bc7abac rollback 005fd1fe31ab (see #14609 and #14582) 14 years ago
Brett Cannon 7bd329d800 Issue #12599: Be more strict in accepting None vs. a false-like object 14 years ago
Brett Cannon 273323cf68 Issue #14592: A relative import will raise a KeyError if __package__ 14 years ago
Brett Cannon 881535b726 Issue #14582: Import returns the module returned by a loader instead 14 years ago
Brett Cannon 49f8d8b016 Handle importing pkg.mod by executing 14 years ago
Brett Cannon fd0741555b Issue #2377: Make importlib the implementation of __import__(). 14 years ago
Brett Cannon bbb6680ee5 Have importlib take advantage of ImportError's new 'name' and 'path' 14 years ago
Brett Cannon d62cd5627f Issue #14500: Fix importlib.test.import_.test_packages to clean up 14 years ago
Brett Cannon 927d87470a If a module injects something into sys.modules as a side-effect of 14 years ago
Brett Cannon b46a1793a7 Update importlib.invalidate_caches() to be more general. 14 years ago
Brett Cannon dfc32706a0 Make the benchmark recording more sensible for importlib.test.benchmark. 14 years ago
Brett Cannon f500778f65 Improper type for __package__ should raise TypeError, not ValueError. 14 years ago
Antoine Pitrou c541f8ef40 Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function. 14 years ago
Brett Cannon 082f177c67 Fix importlib.test.__main__ to only worry about command-line flags when directly executed. 14 years ago
Brett Cannon 1f14bebe3c Have importlib.test use argparse instead of some hacked up solution. 14 years ago
Brett Cannon f58d45c649 Tweak the handling of the empty string in sys.path for importlib. 14 years ago
Brett Cannon 3b1a06c1ea importlib.__import__() now raises ValueError when level < 0. 14 years ago
Brett Cannon b4e63b3177 Use the cwd when the empty string is found in sys.path. This leads to 14 years ago
Brett Cannon cae1068e82 Re-order importlib benchmarks to be consistent. Also print out what implementation of __import__ is used. 14 years ago
Brett Cannon 466e6a90f2 Have importlib.test.benchmark test with tabnanny as a medium-sized test. 14 years ago
Brett Cannon 5ea5b67a0b Fix a minor output typo as found by Terry Reedy. 14 years ago
Brett Cannon e3a9ae5ece Let importlib.test.benchmark take a specific benchmark name to run. 14 years ago
Brett Cannon 190f33cd2b Allow for the specification of a file to dump importlib benchmark 14 years ago
Brett Cannon 8a8945085f Issue #13890: Also fix for extension module tests for case-insensitivity. 14 years ago
Brett Cannon 01ad3251ae Issue #13890: Fix importlib case-sensitivity tests to not run on Windows. 14 years ago
Brett Cannon c264e3ee20 Move some code from importlib.__init__ to importlib._bootstrap that 14 years ago
Antoine Pitrou 33d15f7c85 Port import fixes from 2.7. 14 years ago
Antoine Pitrou dd21f68963 Port remaining test fixes, and fix test_importlib too. 14 years ago
Antoine Pitrou 2be60afb7e Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp. 14 years ago
Benjamin Peterson 6f5b6d7e8f kill useless import added by 87331661042b 14 years ago
Antoine Pitrou 7c9907e565 Fix no-op tests in importlib. 14 years ago
Antoine Pitrou 5136ac0ca2 Issue #13645: pyc files now contain the size of the corresponding source 14 years ago
Meador Inge 96ff0840b6 Issue #13593: updating the importlib utility decorators for __qualname__. 14 years ago
Meador Inge 416f12ddb3 Issue #13591: import_module potentially imports a module twice. 14 years ago
Florent Xicluna 67317750af Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd). 14 years ago
Vinay Sajip 5bdae3bb7c Closes #12291: Fixed bug which was found when doing multiple loads from one stream. 15 years ago
Éric Araujo ef3062f7af Kill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon) 15 years ago
Victor Stinner 272e24356e Issue #11614: Fix importlib tests for the new __hello__ module 15 years ago
Brett Cannon 5d43cff623 Remove a stale comment. 15 years ago