summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* merge from 3.3Senthil Kumaran2013-06-011-2/+1
|\ | | | | | | | | | | Fix #17967: For ftp urls CWD to target instead of hopping to each directory towards target. This fixes a bug where target is accessible, but parent directories are restricted.
| * Fix #17967: For ftp urls CWD to target instead of hopping to each directorySenthil Kumaran2013-06-011-2/+1
| | | | | | | | | | towards target. This fixes a bug where target is accessible, but parent directories are restricted.
* | frozen modules now apparently have empty __path__Benjamin Peterson2013-06-011-1/+1
| |
* | Issue #18065: For frozen packages set __path__ to [].Brett Cannon2013-06-011-1/+1
| | | | | | | | | | | | | | Previously __path__ was set to [__name__], but that could lead to bad results if someone managed to circumvent the frozen importer and somehow ended up with a finder that thought __name__ was a legit directory/location.
* | fix whitespaceBrett Cannon2013-05-311-1/+1
| |
* | Issues #18088, 18089: IntroduceBrett Cannon2013-05-316-104/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | importlib.abc.Loader.init_module_attrs() and implement importlib.abc.InspectLoader.load_module(). The importlib.abc.Loader.init_module_attrs() method sets the various attributes on the module being loaded. It is done unconditionally to support reloading. Typically people used importlib.util.module_for_loader, but since that's a decorator there was no way to override it's actions, so init_module_attrs() came into existence to allow for overriding. This is also why module_for_loader is now pending deprecation (having its other use replaced by importlib.util.module_to_load). All of this allowed for importlib.abc.InspectLoader.load_module() to be implemented. At this point you can now implement a loader with nothing more than get_code() (which only requires get_source(); package support requires is_package()). Thanks to init_module_attrs() the implementation of load_module() is basically a context manager containing 2 methods calls, a call to exec(), and a return statement.
* | Docstring cleanupBrett Cannon2013-05-311-2/+3
| |
* | Fix for last commit on adding reset_name to module_to_loadBrett Cannon2013-05-311-3/+6
| |
* | Add a reset_name argument to importlib.util.module_to_load in order toBrett Cannon2013-05-312-1/+25
| | | | | | | | | | control whether to reset the module's __name__ attribute in case a reload is being done.
* | Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-311-51/+27
|\ \ | |/
| * Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-311-51/+27
| |
| * Backport bff16086f03b and bcaaaa00425b.Stefan Krah2013-05-291-0/+13
| |
* | Rename importlib.util.ModuleManager to module_to_load so that the nameBrett Cannon2013-05-303-10/+17
| | | | | | | | explains better what the context manager is providing.
* | Issue #18084: Use sys.byteorder in wave.py.Serhiy Storchaka2013-05-291-8/+3
| | | | | | | | Original patch by Hideaki Takahashi.
* | test_decimal: add __sizeof__() tests for code coverage.Stefan Krah2013-05-291-0/+13
| |
* | Merge 3.3.Stefan Krah2013-05-292-1/+5
|\ \ | |/
| * Issue #17768: Support newline fill character in decimal.py and NUL fillStefan Krah2013-05-292-1/+5
| | | | | | | | character in _decimal.c.
* | merge from 3.3Senthil Kumaran2013-05-292-0/+13
|\ \ | |/ | | | | | | | | #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline. This helps in handling certain types invalid urls in a conservative manner. Patch contributed by Mher Movsisyan.
| * #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline.Senthil Kumaran2013-05-292-0/+13
| | | | | | | | This helps in handling certain types invalid urls in a conservative manner.
* | Merge with 3.3Terry Jan Reedy2013-05-292-8/+8
|\ \ | |/
| * Issue #15392: Do not run tests if threading/_thread not available. OtherwiseTerry Jan Reedy2013-05-292-8/+8
| | | | | | | | touchup test_idle. Rename README.txt.
* | Issue #18080: merge from 3.3Ned Deily2013-05-282-4/+42
|\ \ | |/
| * Issue #18080: When building a C extension module on OS X, if the compilerNed Deily2013-05-282-4/+42
| | | | | | | | | | | | is overriden with the CC environment variable, use the new compiler as the default for linking if LDSHARED is not also overriden. This restores Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
* | Issue #18070: importlib.util.module_for_loader() now sets __loader__Brett Cannon2013-05-282-33/+15
| | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading.
* | Introduce importlib.util.ModuleManager which is a context manager toBrett Cannon2013-05-283-5/+84
| | | | | | | | | | | | | | | | handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py.
* | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+9
|\ \ | |/ | | | | stream's read() returns more bytes than requested.
| * Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+9
| | | | | | | | stream's read() returns more bytes than requested.
* | Issue #17746: Skip test_shutil.test_non_matching_mode when run as root orSerhiy Storchaka2013-05-281-0/+4
|\ \ | |/ | | | | on unsuitable platform/environment.
| * Issue #17746: Skip test_shutil.test_non_matching_mode when run as root orSerhiy Storchaka2013-05-281-0/+4
| | | | | | | | on unsuitable platform/environment.
* | Issue #18011: Silence an unrelated noise introduced in changeset 1b5ef05d6ced.Serhiy Storchaka2013-05-281-1/+1
| |
* | Issue #18011: base64.b32decode() now raises a binascii.Error if there areSerhiy Storchaka2013-05-282-4/+6
|\ \ | |/ | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation.
| * Issue #18011: base64.b32decode() now raises a binascii.Error if there areSerhiy Storchaka2013-05-282-4/+6
| | | | | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation.
* | Merge with 3.3Jason R. Coombs2013-05-281-1/+1
|\ \ | |/
| * Use simple call to os.symlink for broken link (intended for previous commit)Jason R. Coombs2013-05-281-1/+1
| |
* | Merge with 3.3Jason R. Coombs2013-05-281-8/+36
|\ \ | |/
| * Issue #13772: Restored directory detection of targets in `os.symlink` on ↵Jason R. Coombs2013-05-281-8/+36
| | | | | | | | Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
* | Merge with 3.3Terry Jan Reedy2013-05-287-2/+114
|\ \ | |/
| * Issue #15392: Create a unittest framework for IDLE.Terry Jan Reedy2013-05-287-2/+114
| | | | | | | | Preliminary patch by Rajagopalasarma Jayakrishnan.
* | Issue #18072: Implement get_code() for importlib.abc.InspectLoader andBrett Cannon2013-05-282-13/+113
| | | | | | | | ExecutionLoader.
* | Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.Brett Cannon2013-05-262-3/+54
| | | | | | | | | | | | | | While the previous location was fine, it makes more sense to have the method higher up in the inheritance chain, especially at a point where get_source() is defined which is the earliest source_to_code() could programmatically be used in the inheritance tree in importlib.abc.
* | Issue #18063: fix some struct specifications in the tests for sys.getsizeof().Antoine Pitrou2013-05-251-5/+5
|\ \ | |/
| * Issue #18063: fix some struct specifications in the tests for sys.getsizeof().Antoine Pitrou2013-05-251-5/+5
| |
* | Fix #16832 - expose cache validity checking support in ABCMetaŁukasz Langa2013-05-252-0/+17
| |
* | Clean-up duplicated code in testsEli Bendersky2013-05-251-46/+0
|\ \ | |/
| * Clean-up duplicated code in testsEli Bendersky2013-05-251-46/+0
| |
* | Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-0/+92
|\ \ | |/ | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
| * Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-0/+92
| | | | | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
* | Fix test_bad_address on Ubuntu 13.04Antoine Pitrou2013-05-251-1/+4
|\ \ | |/
| * Fix test_bad_address on Ubuntu 13.04Antoine Pitrou2013-05-251-1/+4
| |
* | Closes #18046: Simplified logging internals relating to levels and their ↵Vinay Sajip2013-05-253-25/+30
| | | | | | | | names. Thanks to Alex Gaynor for the patch.