Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | merge from 3.3 | Senthil Kumaran | 2013-06-01 | 1 | -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 directory | Senthil Kumaran | 2013-06-01 | 1 | -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 Peterson | 2013-06-01 | 1 | -1/+1 |
| | | |||||
* | | Issue #18065: For frozen packages set __path__ to []. | Brett Cannon | 2013-06-01 | 1 | -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 whitespace | Brett Cannon | 2013-05-31 | 1 | -1/+1 |
| | | |||||
* | | Issues #18088, 18089: Introduce | Brett Cannon | 2013-05-31 | 6 | -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 cleanup | Brett Cannon | 2013-05-31 | 1 | -2/+3 |
| | | |||||
* | | Fix for last commit on adding reset_name to module_to_load | Brett Cannon | 2013-05-31 | 1 | -3/+6 |
| | | |||||
* | | Add a reset_name argument to importlib.util.module_to_load in order to | Brett Cannon | 2013-05-31 | 2 | -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 Storchaka | 2013-05-31 | 1 | -51/+27 |
|\ \ | |/ | |||||
| * | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 1 | -51/+27 |
| | | |||||
| * | Backport bff16086f03b and bcaaaa00425b. | Stefan Krah | 2013-05-29 | 1 | -0/+13 |
| | | |||||
* | | Rename importlib.util.ModuleManager to module_to_load so that the name | Brett Cannon | 2013-05-30 | 3 | -10/+17 |
| | | | | | | | | explains better what the context manager is providing. | ||||
* | | Issue #18084: Use sys.byteorder in wave.py. | Serhiy Storchaka | 2013-05-29 | 1 | -8/+3 |
| | | | | | | | | Original patch by Hideaki Takahashi. | ||||
* | | test_decimal: add __sizeof__() tests for code coverage. | Stefan Krah | 2013-05-29 | 1 | -0/+13 |
| | | |||||
* | | Merge 3.3. | Stefan Krah | 2013-05-29 | 2 | -1/+5 |
|\ \ | |/ | |||||
| * | Issue #17768: Support newline fill character in decimal.py and NUL fill | Stefan Krah | 2013-05-29 | 2 | -1/+5 |
| | | | | | | | | character in _decimal.c. | ||||
* | | merge from 3.3 | Senthil Kumaran | 2013-05-29 | 2 | -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 Kumaran | 2013-05-29 | 2 | -0/+13 |
| | | | | | | | | This helps in handling certain types invalid urls in a conservative manner. | ||||
* | | Merge with 3.3 | Terry Jan Reedy | 2013-05-29 | 2 | -8/+8 |
|\ \ | |/ | |||||
| * | Issue #15392: Do not run tests if threading/_thread not available. Otherwise | Terry Jan Reedy | 2013-05-29 | 2 | -8/+8 |
| | | | | | | | | touchup test_idle. Rename README.txt. | ||||
* | | Issue #18080: merge from 3.3 | Ned Deily | 2013-05-28 | 2 | -4/+42 |
|\ \ | |/ | |||||
| * | Issue #18080: When building a C extension module on OS X, if the compiler | Ned Deily | 2013-05-28 | 2 | -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 Cannon | 2013-05-28 | 2 | -33/+15 |
| | | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading. | ||||
* | | Introduce importlib.util.ModuleManager which is a context manager to | Brett Cannon | 2013-05-28 | 3 | -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 raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+9 |
|\ \ | |/ | | | | | stream's read() returns more bytes than requested. | ||||
| * | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+9 |
| | | | | | | | | stream's read() returns more bytes than requested. | ||||
* | | Issue #17746: Skip test_shutil.test_non_matching_mode when run as root or | Serhiy Storchaka | 2013-05-28 | 1 | -0/+4 |
|\ \ | |/ | | | | | on unsuitable platform/environment. | ||||
| * | Issue #17746: Skip test_shutil.test_non_matching_mode when run as root or | Serhiy Storchaka | 2013-05-28 | 1 | -0/+4 |
| | | | | | | | | on unsuitable platform/environment. | ||||
* | | Issue #18011: Silence an unrelated noise introduced in changeset 1b5ef05d6ced. | Serhiy Storchaka | 2013-05-28 | 1 | -1/+1 |
| | | |||||
* | | Issue #18011: base64.b32decode() now raises a binascii.Error if there are | Serhiy Storchaka | 2013-05-28 | 2 | -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 are | Serhiy Storchaka | 2013-05-28 | 2 | -4/+6 |
| | | | | | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation. | ||||
* | | Merge with 3.3 | Jason R. Coombs | 2013-05-28 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Use simple call to os.symlink for broken link (intended for previous commit) | Jason R. Coombs | 2013-05-28 | 1 | -1/+1 |
| | | |||||
* | | Merge with 3.3 | Jason R. Coombs | 2013-05-28 | 1 | -8/+36 |
|\ \ | |/ | |||||
| * | Issue #13772: Restored directory detection of targets in `os.symlink` on ↵ | Jason R. Coombs | 2013-05-28 | 1 | -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.3 | Terry Jan Reedy | 2013-05-28 | 7 | -2/+114 |
|\ \ | |/ | |||||
| * | Issue #15392: Create a unittest framework for IDLE. | Terry Jan Reedy | 2013-05-28 | 7 | -2/+114 |
| | | | | | | | | Preliminary patch by Rajagopalasarma Jayakrishnan. | ||||
* | | Issue #18072: Implement get_code() for importlib.abc.InspectLoader and | Brett Cannon | 2013-05-28 | 2 | -13/+113 |
| | | | | | | | | ExecutionLoader. | ||||
* | | Move importlib.abc.SourceLoader.source_to_code() to InspectLoader. | Brett Cannon | 2013-05-26 | 2 | -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 Pitrou | 2013-05-25 | 1 | -5/+5 |
|\ \ | |/ | |||||
| * | Issue #18063: fix some struct specifications in the tests for sys.getsizeof(). | Antoine Pitrou | 2013-05-25 | 1 | -5/+5 |
| | | |||||
* | | Fix #16832 - expose cache validity checking support in ABCMeta | Łukasz Langa | 2013-05-25 | 2 | -0/+17 |
| | | |||||
* | | Clean-up duplicated code in tests | Eli Bendersky | 2013-05-25 | 1 | -46/+0 |
|\ \ | |/ | |||||
| * | Clean-up duplicated code in tests | Eli Bendersky | 2013-05-25 | 1 | -46/+0 |
| | | |||||
* | | Issue #13612: handle unknown encodings without a buffer overflow. | Eli Bendersky | 2013-05-25 | 1 | -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 Bendersky | 2013-05-25 | 1 | -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.04 | Antoine Pitrou | 2013-05-25 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Fix test_bad_address on Ubuntu 13.04 | Antoine Pitrou | 2013-05-25 | 1 | -1/+4 |
| | | |||||
* | | Closes #18046: Simplified logging internals relating to levels and their ↵ | Vinay Sajip | 2013-05-25 | 3 | -25/+30 |
| | | | | | | | | names. Thanks to Alex Gaynor for the patch. |