]>
granicus.if.org Git - python/log
Eric Snow [Thu, 19 Dec 2013 06:35:15 +0000 (23:35 -0700)]
Remove some dead code in importlib, introduced with the PEP 451 patch.
Early in the PEP 451 implementation some of the importlib loaders had
their own _get_spec() methods to simplify accommodating them. However,
later implementations removed the need. They simply failed to remove
this code at the same time. :)
Benjamin Peterson [Wed, 18 Dec 2013 21:37:03 +0000 (15:37 -0600)]
merge 3.3 (#20018)
Benjamin Peterson [Wed, 18 Dec 2013 21:35:18 +0000 (15:35 -0600)]
update url to spec (closes #20018)
Gregory P. Smith [Wed, 18 Dec 2013 19:27:21 +0000 (11:27 -0800)]
remove trailing spaces
Gregory P. Smith [Wed, 18 Dec 2013 19:27:05 +0000 (11:27 -0800)]
remove trailing spaces.
Zachary Ware [Wed, 18 Dec 2013 18:22:35 +0000 (12:22 -0600)]
Closes #20005: Fix typo in operator docs. Patch by Claudiu Popa.
Zachary Ware [Wed, 18 Dec 2013 18:21:49 +0000 (12:21 -0600)]
Issue #20005: Fix typo in operator docs. Patch by Claudiu Popa.
Serhiy Storchaka [Wed, 18 Dec 2013 14:45:24 +0000 (16:45 +0200)]
Issue #19492: Silently skipped distutils tests now reported as skipped.
Serhiy Storchaka [Wed, 18 Dec 2013 14:41:01 +0000 (16:41 +0200)]
Issue #19492: Silently skipped distutils tests now reported as skipped.
R David Murray [Wed, 18 Dec 2013 02:14:41 +0000 (21:14 -0500)]
Merge: #19855: uuid.get_node now looks on the PATH for executables on unix.
R David Murray [Wed, 18 Dec 2013 02:13:16 +0000 (21:13 -0500)]
#19855: uuid.get_node now looks on the PATH for executables on unix.
Patch by Serhiy Storchaka.
Antoine Pitrou [Tue, 17 Dec 2013 23:32:02 +0000 (00:32 +0100)]
Issue #20006: Fix sporadic failures in test_weakset.
Antoine Pitrou [Tue, 17 Dec 2013 23:28:36 +0000 (00:28 +0100)]
Issue #20006: Fix sporadic failures in test_weakset.
Antoine Pitrou [Tue, 17 Dec 2013 23:29:30 +0000 (00:29 +0100)]
Revert misled test change in
f189da5bda26 .
Serhiy Storchaka [Tue, 17 Dec 2013 19:51:40 +0000 (21:51 +0200)]
Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.
Serhiy Storchaka [Tue, 17 Dec 2013 19:50:02 +0000 (21:50 +0200)]
Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.
Serhiy Storchaka [Tue, 17 Dec 2013 13:12:46 +0000 (15:12 +0200)]
Issue #16404: Add checks for return value of PyLong_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
Serhiy Storchaka [Tue, 17 Dec 2013 13:11:24 +0000 (15:11 +0200)]
Issue #16404: Add checks for return value of PyLong_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
Serhiy Storchaka [Tue, 17 Dec 2013 13:00:53 +0000 (15:00 +0200)]
Fixed leak in sys.flags initialization.
Serhiy Storchaka [Tue, 17 Dec 2013 12:59:42 +0000 (14:59 +0200)]
Fixed leak in sys.flags initialization.
Nick Coghlan [Tue, 17 Dec 2013 12:17:26 +0000 (22:17 +1000)]
Close #19946: use runpy as needed in multiprocessing
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
Eric Snow [Tue, 17 Dec 2013 06:10:50 +0000 (23:10 -0700)]
Issue #19713: Fix mistakes in the import page of language reference.
These mistakes were introduced by the initial PEP 451 merge.
Eric Snow [Tue, 17 Dec 2013 06:06:52 +0000 (23:06 -0700)]
Issue #19713: Update importlib docs for module spec changes, including deprecations.
Eli Bendersky [Tue, 17 Dec 2013 05:13:40 +0000 (21:13 -0800)]
Issue #20001: Add the SVG source of the pathlib-inheritance diagram to Hg
Victor Stinner [Mon, 16 Dec 2013 22:39:40 +0000 (23:39 +0100)]
Backout
a1a05e2724dd : shutil.which(bytes) is a new feature and my patch does not work on Windows
Victor Stinner [Mon, 16 Dec 2013 22:06:19 +0000 (23:06 +0100)]
tracemalloc: fix usage of strtol(), value can be LONG_MIN or LONG_MAX on ERANGE
Victor Stinner [Mon, 16 Dec 2013 22:05:13 +0000 (23:05 +0100)]
tracemalloc: only use unsigned types to compute hash
Commit to simplify the backport to python 2.7 and to make the code more
consistent.
Victor Stinner [Mon, 16 Dec 2013 21:48:48 +0000 (22:48 +0100)]
Issue #18283: shutil.which() now supports bytes argument, not only text argument.
Victor Stinner [Mon, 16 Dec 2013 21:38:46 +0000 (22:38 +0100)]
(Merge 3.3) Close #19999: tolerate coarse time when testing time.monotonic() on
very busy/slow buildbot
Victor Stinner [Mon, 16 Dec 2013 21:36:50 +0000 (22:36 +0100)]
Close #19999: tolerate coarse time when testing time.monotonic() on very
busy/slow buildbot
Christian Heimes [Mon, 16 Dec 2013 20:17:02 +0000 (21:17 +0100)]
merge
Christian Heimes [Mon, 16 Dec 2013 20:16:45 +0000 (21:16 +0100)]
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.
Christian Heimes [Mon, 16 Dec 2013 20:15:44 +0000 (21:15 +0100)]
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.
Antoine Pitrou [Mon, 16 Dec 2013 20:00:53 +0000 (21:00 +0100)]
Mention specific exceptions instead of OSError where appropriate.
Antoine Pitrou [Mon, 16 Dec 2013 19:22:37 +0000 (20:22 +0100)]
Issue #19921: When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
Patch by Serhiy.
Antoine Pitrou [Mon, 16 Dec 2013 18:57:41 +0000 (19:57 +0100)]
Issue #19887: Improve the Path.resolve() algorithm to support certain symlink chains.
Original patch by Serhiy.
Zachary Ware [Mon, 16 Dec 2013 15:05:44 +0000 (09:05 -0600)]
Issue #19987: Merge with 3.3
Zachary Ware [Mon, 16 Dec 2013 15:02:41 +0000 (09:02 -0600)]
Issue #19987: Re-write test_alias_fallback in test_winsound to have two
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
Christian Heimes [Mon, 16 Dec 2013 13:54:24 +0000 (14:54 +0100)]
Issue #19987: disable test_winsound's test_alias_fallback test when no sound card
is available. The test fails on Windows Server 2008.
Christian Heimes [Mon, 16 Dec 2013 13:35:58 +0000 (14:35 +0100)]
merge
Christian Heimes [Mon, 16 Dec 2013 13:35:39 +0000 (14:35 +0100)]
Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
run Python's unit tests with multiple versions of OpenSSL.
Serhiy Storchaka [Mon, 16 Dec 2013 13:17:33 +0000 (15:17 +0200)]
Null merge
Serhiy Storchaka [Mon, 16 Dec 2013 13:17:13 +0000 (15:17 +0200)]
Merge heads
Serhiy Storchaka [Mon, 16 Dec 2013 13:16:35 +0000 (15:16 +0200)]
Merge heads
Serhiy Storchaka [Mon, 16 Dec 2013 13:14:19 +0000 (15:14 +0200)]
Issue #19912: Fixed numerous bugs in ntpath.splitunc().
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
Serhiy Storchaka [Mon, 16 Dec 2013 13:13:28 +0000 (15:13 +0200)]
Issue #19912: Fixed numerous bugs in ntpath.splitunc().
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
Charles-François Natali [Mon, 16 Dec 2013 12:49:56 +0000 (13:49 +0100)]
Mere.
Charles-François Natali [Mon, 16 Dec 2013 12:49:38 +0000 (13:49 +0100)]
Merge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:30 +0000 (13:49 +0100)]
Merge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:19 +0000 (13:49 +0100)]
Merge.
Serhiy Storchaka [Mon, 16 Dec 2013 12:36:10 +0000 (14:36 +0200)]
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
Serhiy Storchaka [Mon, 16 Dec 2013 12:34:55 +0000 (14:34 +0200)]
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
Christian Heimes [Mon, 16 Dec 2013 12:28:20 +0000 (13:28 +0100)]
Issue #17919: add missing import of USHRT_MAX
Christian Heimes [Mon, 16 Dec 2013 12:27:16 +0000 (13:27 +0100)]
Issue #17919: add missing import of USHRT_MAX
Charles-François Natali [Mon, 16 Dec 2013 11:03:05 +0000 (12:03 +0100)]
Merge.
Charles-François Natali [Mon, 16 Dec 2013 11:02:42 +0000 (12:02 +0100)]
Merge.
R David Murray [Mon, 16 Dec 2013 01:56:00 +0000 (20:56 -0500)]
Merge: #19532: make compileall with no file/dir args respect -f and -q.
R David Murray [Mon, 16 Dec 2013 01:49:38 +0000 (20:49 -0500)]
#19532: make compileall with no file/dir args respect -f and -q.
Patch by Vajrasky Kok.
Christian Heimes [Sun, 15 Dec 2013 20:49:17 +0000 (21:49 +0100)]
test_ssl: skip tests when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 20:44:43 +0000 (21:44 +0100)]
test_poplib: skip stls_context test when SNI is not available
Stefan Krah [Sun, 15 Dec 2013 20:02:28 +0000 (21:02 +0100)]
Merge.
Raymond Hettinger [Sun, 15 Dec 2013 19:56:14 +0000 (11:56 -0800)]
Minor code clean-up. Keep the C-API all in one section.
Stefan Krah [Sun, 15 Dec 2013 19:52:08 +0000 (20:52 +0100)]
Merge from 3.3.
Stefan Krah [Sun, 15 Dec 2013 19:45:08 +0000 (20:45 +0100)]
Issue #19986: Avoid an incorrect warning of older gcc versions.
Christian Heimes [Sun, 15 Dec 2013 18:50:13 +0000 (19:50 +0100)]
fixed test_ftplib
Christian Heimes [Sun, 15 Dec 2013 18:39:32 +0000 (19:39 +0100)]
test_imaplib: skip check_hostname test when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 18:38:22 +0000 (19:38 +0100)]
test_ftplib: skip check_hostname test when SNI is not available
Charles-François Natali [Sun, 15 Dec 2013 18:12:52 +0000 (19:12 +0100)]
Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.
Charles-François Natali [Sun, 15 Dec 2013 18:12:07 +0000 (19:12 +0100)]
Merge.
Charles-François Natali [Sun, 15 Dec 2013 18:09:00 +0000 (19:09 +0100)]
Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.
Christian Heimes [Sun, 15 Dec 2013 16:02:36 +0000 (17:02 +0100)]
Skip some tests that require server name indication (SNI)
Christian Heimes [Sun, 15 Dec 2013 14:36:20 +0000 (15:36 +0100)]
Import USHRT_MAX to fix failing test_devpool test
Nick Coghlan [Sun, 15 Dec 2013 10:33:02 +0000 (20:33 +1000)]
Issue #19700: set __spec__ appropriately in runpy
Note that __spec__.name is not currently guaranteed to be in
sys.modules when the code is running, only __name__ is.
The "running module is in sys.modules" invariant will be
expanded to also cover __spec__.name in a subsequent patch.
Serhiy Storchaka [Sat, 14 Dec 2013 19:07:51 +0000 (21:07 +0200)]
Null merge
Serhiy Storchaka [Sat, 14 Dec 2013 19:07:09 +0000 (21:07 +0200)]
Issue #17576: Removed deprecation warnings added in changeset
618cca51a27e .
Serhiy Storchaka [Sat, 14 Dec 2013 18:42:22 +0000 (20:42 +0200)]
Issue #19623: Fixed writing to unseekable files in the aifc module.
Serhiy Storchaka [Sat, 14 Dec 2013 18:35:04 +0000 (20:35 +0200)]
Issue #19623: Fixed writing to unseekable files in the aifc module.
Serhiy Storchaka [Sat, 14 Dec 2013 17:18:39 +0000 (19:18 +0200)]
Issue #17919: Fixed integer overflow in the eventmask parameter.
Serhiy Storchaka [Sat, 14 Dec 2013 17:12:02 +0000 (19:12 +0200)]
Issue #17919: Fixed integer overflow in the eventmask parameter.
R David Murray [Sat, 14 Dec 2013 16:26:06 +0000 (11:26 -0500)]
#19970: fix additional typo in 3.4 asyncio docs.
Stefan Krah [Sat, 14 Dec 2013 12:43:10 +0000 (13:43 +0100)]
Issue #19972: Add rarely used freefunc. This fixes a leak if sys.exit()
is used in a program.
Stefan Krah [Sat, 14 Dec 2013 11:58:59 +0000 (12:58 +0100)]
Merge from 3.3.
Stefan Krah [Sat, 14 Dec 2013 11:58:09 +0000 (12:58 +0100)]
Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subverted
by including stdint.h before mpdecimal.h. In that case the only option left
is to compile with -D_STDC_LIMIT_MACROS.
Ezio Melotti [Sat, 14 Dec 2013 10:43:08 +0000 (12:43 +0200)]
#19981: merge with 3.3.
Ezio Melotti [Sat, 14 Dec 2013 10:42:29 +0000 (12:42 +0200)]
#19981: fix typo in email.mailbox docs. Patch by Claudiu Popa.
R David Murray [Sat, 14 Dec 2013 01:53:26 +0000 (20:53 -0500)]
Merge: #19970: Fix some comment typos.
R David Murray [Sat, 14 Dec 2013 01:52:19 +0000 (20:52 -0500)]
#19970: Fix some comment typos.
Report and patch by Vajrasky Kok.
R David Murray [Fri, 13 Dec 2013 22:21:42 +0000 (17:21 -0500)]
#19975: remove unused imports from webbrowser module.
Report and patch by Claudiu Popa.
Brett Cannon [Fri, 13 Dec 2013 21:47:19 +0000 (16:47 -0500)]
Issue #19704: Port test.test_threaded_import to PEP 451
Brett Cannon [Fri, 13 Dec 2013 18:58:47 +0000 (13:58 -0500)]
merge for issue #19963
Brett Cannon [Fri, 13 Dec 2013 18:57:41 +0000 (13:57 -0500)]
Issue #19963: Document that importlib.import_module() will import
parent packages automatically.
R David Murray [Fri, 13 Dec 2013 17:30:29 +0000 (12:30 -0500)]
Merge: #18036: update .pyc FAQ entry in light of PEP 3147.
R David Murray [Fri, 13 Dec 2013 17:29:29 +0000 (12:29 -0500)]
#18036: update .pyc FAQ entry in light of PEP 3147.
Initial patch by Phil Connell.
Brett Cannon [Fri, 13 Dec 2013 16:43:10 +0000 (11:43 -0500)]
Issue #19946: Raise ImportError when the main module cannot be found
by multiprocessing.spawn (before it was raising an AttributeError).
Victor Stinner [Fri, 13 Dec 2013 13:33:01 +0000 (14:33 +0100)]
Issue #14432: Document the removal of the PyFrameObject.f_tstate field
Victor Stinner [Fri, 13 Dec 2013 11:51:24 +0000 (12:51 +0100)]
asyncio doc: explain where does the task come from.
Victor Stinner [Fri, 13 Dec 2013 11:47:39 +0000 (12:47 +0100)]
asyncio doc: change style of the sequence diagram to focus on the control flow
Victor Stinner [Fri, 13 Dec 2013 11:15:31 +0000 (12:15 +0100)]
(Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
"%c" argument is not in range [0; 255].
Victor Stinner [Fri, 13 Dec 2013 11:14:44 +0000 (12:14 +0100)]
Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
Victor Stinner [Fri, 13 Dec 2013 10:08:56 +0000 (11:08 +0100)]
Issue #19787: PyThread_set_key_value() now always set the value
In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).
When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751.