]>
granicus.if.org Git - python/log
Benjamin Peterson [Fri, 24 Apr 2015 16:02:53 +0000 (12:02 -0400)]
merge 3.4 (#24049)
Benjamin Peterson [Fri, 24 Apr 2015 16:02:29 +0000 (12:02 -0400)]
remove dead *-import checking code (closes #24049)
Serhiy Storchaka [Thu, 23 Apr 2015 21:40:51 +0000 (00:40 +0300)]
Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the
same line as function name.
Benjamin Peterson [Thu, 23 Apr 2015 21:06:45 +0000 (17:06 -0400)]
merge 3.4 (#24044)
Benjamin Peterson [Thu, 23 Apr 2015 21:06:33 +0000 (17:06 -0400)]
merge 3.3 (#24044)
Benjamin Peterson [Thu, 23 Apr 2015 21:05:07 +0000 (17:05 -0400)]
merge 3.2 (#24044)
Benjamin Peterson [Thu, 23 Apr 2015 21:04:36 +0000 (17:04 -0400)]
properly handle malloc failure (closes #24044)
Patch by Christian Heimes.
Christian Heimes [Thu, 23 Apr 2015 09:25:41 +0000 (11:25 +0200)]
Issue #24031: make patchcheck now supports git checkouts, too.
Christian Heimes [Thu, 23 Apr 2015 09:24:14 +0000 (11:24 +0200)]
Issue #24031: make patchcheck now supports git checkouts, too.
Serhiy Storchaka [Thu, 23 Apr 2015 08:36:40 +0000 (11:36 +0300)]
Issue #23713: Fixed fragility of test_imap_unordered_handle_iterable_exception.
Patch by Davin Potts.
Serhiy Storchaka [Thu, 23 Apr 2015 08:35:59 +0000 (11:35 +0300)]
Issue #23713: Fixed fragility of test_imap_unordered_handle_iterable_exception.
Patch by Davin Potts.
Serhiy Storchaka [Thu, 23 Apr 2015 07:58:15 +0000 (10:58 +0300)]
Use more precise Tcl version checks in tests.
Serhiy Storchaka [Thu, 23 Apr 2015 07:57:40 +0000 (10:57 +0300)]
Use more precise Tcl version checks in tests.
Barry Warsaw [Wed, 22 Apr 2015 22:38:26 +0000 (18:38 -0400)]
Issue #24029: Document the name binding behavior for submodule imports.
Barry Warsaw [Wed, 22 Apr 2015 22:36:44 +0000 (18:36 -0400)]
Issue #24029: Document the name binding behavior for submodule imports.
Barry Warsaw [Wed, 22 Apr 2015 22:29:16 +0000 (18:29 -0400)]
Issue #24029: Document the name binding behavior for submodule imports.
Christian Heimes [Wed, 22 Apr 2015 21:55:29 +0000 (23:55 +0200)]
Next attempt: fix .gitignore for Unix and OSX. Sorry RDM!
Christian Heimes [Wed, 22 Apr 2015 21:54:44 +0000 (23:54 +0200)]
Next attempt: fix .gitignore for Unix and OSX. Sorry RDM!
Facundo Batista [Wed, 22 Apr 2015 21:35:54 +0000 (18:35 -0300)]
Issue #23887: urllib.error.HTTPError now has a proper repr() representation.
Christian Heimes [Wed, 22 Apr 2015 20:16:01 +0000 (22:16 +0200)]
Fix .gitignore for 'python' binary.
Christian Heimes [Wed, 22 Apr 2015 20:15:44 +0000 (22:15 +0200)]
Fix .gitignore for 'python' binary.
Benjamin Peterson [Wed, 22 Apr 2015 13:16:27 +0000 (09:16 -0400)]
merge 3.4 (#22785)
Benjamin Peterson [Wed, 22 Apr 2015 13:16:07 +0000 (09:16 -0400)]
improved range docstring (closes #22785)
Patch by Ned Batchelder.
doko@ubuntu.com [Wed, 22 Apr 2015 12:49:27 +0000 (14:49 +0200)]
- move NEWS item to 3.5
Berker Peksag [Wed, 22 Apr 2015 08:32:19 +0000 (11:32 +0300)]
Issue #21483: Skip test_timestamp_overflow on NFS.
Patch by Isaac Schwabacher.
Serhiy Storchaka [Wed, 22 Apr 2015 08:01:38 +0000 (11:01 +0300)]
Merge heads
Serhiy Storchaka [Wed, 22 Apr 2015 07:59:32 +0000 (10:59 +0300)]
Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8
(tclTomMath.h was broken) and non-final Tcl 8.6.
Removed TK_VERSION_HEX.
Serhiy Storchaka [Wed, 22 Apr 2015 07:53:08 +0000 (10:53 +0300)]
Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8
(tclTomMath.h was broken) and non-final Tcl 8.6.
Berker Peksag [Wed, 22 Apr 2015 06:39:19 +0000 (09:39 +0300)]
Issue #23917: Fall back to sequential compilation when ProcessPoolExecutor doesn't exist.
Patch by Claudiu Popa.
Serhiy Storchaka [Wed, 22 Apr 2015 05:36:41 +0000 (08:36 +0300)]
Fixed full Tcl version parsing in tests for pre-final versions.
Serhiy Storchaka [Wed, 22 Apr 2015 05:36:03 +0000 (08:36 +0300)]
Fixed full Tcl version parsing in tests for pre-final versions.
Andrew Kuchling [Tue, 21 Apr 2015 23:44:54 +0000 (19:44 -0400)]
Merge from 3.4
Andrew Kuchling [Tue, 21 Apr 2015 23:43:33 +0000 (19:43 -0400)]
#15183: clarify timeit documentation to say that setup statement isn't timed
Serhiy Storchaka [Tue, 21 Apr 2015 18:11:13 +0000 (21:11 +0300)]
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
Serhiy Storchaka [Tue, 21 Apr 2015 18:09:48 +0000 (21:09 +0300)]
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
Benjamin Peterson [Tue, 21 Apr 2015 16:07:06 +0000 (12:07 -0400)]
merge 3.4 (#24022)
Benjamin Peterson [Tue, 21 Apr 2015 16:05:19 +0000 (12:05 -0400)]
do not call into python api if an exception is set (#24022)
Christian Heimes [Tue, 21 Apr 2015 08:57:41 +0000 (10:57 +0200)]
Get rid of unused-but-set-variable warning. len and len2 should be equal and len2 is technically more correct, too.
Greg Ward [Tue, 21 Apr 2015 00:21:21 +0000 (20:21 -0400)]
#17445: difflib: add diff_bytes(), to compare bytes rather than str
Some applications (e.g. traditional Unix diff, version control
systems) neither know nor care about the encodings of the files they
are comparing. They are textual, but to the diff utility they are just
bytes. This worked fine under Python 2, because all of the hardcoded
strings in difflib.py are ASCII, so could safely be combined with
old-style u'' strings. But it stopped working in 3.x.
The solution is to use surrogate escapes for a lossless
bytes->str->bytes roundtrip. That means {unified,context}_diff() can
continue to just handle strings without worrying about bytes. Callers
who have to deal with bytes will need to change to using diff_bytes().
Use case: Mercurial's test runner uses difflib to compare current hg
output with known good output. But Mercurial's output is just bytes,
since it can contain:
* file contents (arbitrary unknown encoding)
* filenames (arbitrary unknown encoding)
* usernames and commit messages (usually UTF-8, but not guaranteed
because old versions of Mercurial did not enforce it)
* user messages (locale encoding)
Since the output of any given hg command can include text in multiple
encodings, it is hopeless to try to treat it as decodable Unicode
text. It's just bytes, all the way down.
This is an elaboration of a patch by Terry Reedy.
Benjamin Peterson [Mon, 20 Apr 2015 22:22:21 +0000 (18:22 -0400)]
merge 3.4 (#23989)
Benjamin Peterson [Mon, 20 Apr 2015 22:18:14 +0000 (18:18 -0400)]
recommend requests library (closes #23989)
Patch from Van Lindberg
doko@ubuntu.com [Mon, 20 Apr 2015 19:05:23 +0000 (21:05 +0200)]
- move some NEWS items to 3.5.0 beta 1
Guido van Rossum [Mon, 20 Apr 2015 16:29:57 +0000 (09:29 -0700)]
Fix asyncio issue 235 (merge from 3.4).
Guido van Rossum [Mon, 20 Apr 2015 16:24:24 +0000 (09:24 -0700)]
Fix asyncio issue 235: Queue subclass bug caused by JoinableQueue merge.
Serhiy Storchaka [Mon, 20 Apr 2015 11:07:41 +0000 (14:07 +0300)]
Issue #16840: Turn on support of bignums only in final release of Tcl 8.5.
Serhiy Storchaka [Mon, 20 Apr 2015 11:05:37 +0000 (14:05 +0300)]
Issue #16840: Turn on support of bignums only in final release of Tcl 8.5.
Larry Hastings [Mon, 20 Apr 2015 08:19:55 +0000 (01:19 -0700)]
Merge Python 3.5.0a4 release engineering commits.
Larry Hastings [Mon, 20 Apr 2015 08:18:10 +0000 (01:18 -0700)]
Post-release updates for Python 3.5.0a4.
Serhiy Storchaka [Mon, 20 Apr 2015 07:12:28 +0000 (10:12 +0300)]
Issue #23908: os functions now reject paths with embedded null character
on Windows instead of silently truncate them.
Removed no longer used _PyUnicode_HasNULChars().
Serhiy Storchaka [Mon, 20 Apr 2015 06:53:58 +0000 (09:53 +0300)]
Issue #23908: os functions now reject paths with embedded null character
on Windows instead of silently truncate them.
Serhiy Storchaka [Mon, 20 Apr 2015 06:31:51 +0000 (09:31 +0300)]
Issue #23728: binascii.crc_hqx() could return an integer outside of the range
0-0xffff for empty data.
Serhiy Storchaka [Mon, 20 Apr 2015 06:26:49 +0000 (09:26 +0300)]
Issue #23728: binascii.crc_hqx() could return an integer outside of the range
0-0xffff for empty data.
Serhiy Storchaka [Mon, 20 Apr 2015 06:23:21 +0000 (09:23 +0300)]
Issue #23842: Added tests for os.major(), os.minor() and os.makedev().
Serhiy Storchaka [Mon, 20 Apr 2015 06:22:13 +0000 (09:22 +0300)]
Issue #23842: Added tests for os.major(), os.minor() and os.makedev().
Benjamin Peterson [Mon, 20 Apr 2015 03:14:57 +0000 (23:14 -0400)]
merge 3.4
Benjamin Peterson [Mon, 20 Apr 2015 03:14:37 +0000 (23:14 -0400)]
fix grammar
Steve Dower [Mon, 20 Apr 2015 02:50:35 +0000 (19:50 -0700)]
Minor fixes to Windows build scripts
Steve Dower [Mon, 20 Apr 2015 02:45:51 +0000 (19:45 -0700)]
Backed out buildbot clean
Steve Dower [Mon, 20 Apr 2015 02:40:09 +0000 (19:40 -0700)]
Force the buildbots to clean up all externals.
Larry Hastings [Sun, 19 Apr 2015 20:56:54 +0000 (13:56 -0700)]
Added tag v3.5.0a4 for changeset
413e0e0004f4
Larry Hastings [Sun, 19 Apr 2015 20:51:40 +0000 (13:51 -0700)]
Version number bump for Python 3.5.0a4.
Larry Hastings [Sun, 19 Apr 2015 20:50:12 +0000 (13:50 -0700)]
Regenerated pydoc-topics and fixed bad/suspicious doc markup for Python 3.5.0a4.
Christian Heimes [Sun, 19 Apr 2015 19:15:02 +0000 (21:15 +0200)]
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
Christian Heimes [Sun, 19 Apr 2015 19:12:14 +0000 (21:12 +0200)]
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
Christian Heimes [Sun, 19 Apr 2015 19:08:42 +0000 (21:08 +0200)]
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
Serhiy Storchaka [Sun, 19 Apr 2015 18:13:00 +0000 (21:13 +0300)]
Fixed error message for the "u#" format code.
Serhiy Storchaka [Sun, 19 Apr 2015 18:11:30 +0000 (21:11 +0300)]
Fixed error message for the "u#" format code.
Serhiy Storchaka [Sun, 19 Apr 2015 17:38:19 +0000 (20:38 +0300)]
Use PyArg_ParseTuple (new API) instead of PyArg_Parse (old API) for parsing tuples.
doko@ubuntu.com [Sun, 19 Apr 2015 12:44:05 +0000 (14:44 +0200)]
- #22980: fix triplet configure test for more targets
Berker Peksag [Sun, 19 Apr 2015 01:38:01 +0000 (04:38 +0300)]
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
Berker Peksag [Sun, 19 Apr 2015 01:37:35 +0000 (04:37 +0300)]
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
Berker Peksag [Sun, 19 Apr 2015 01:32:52 +0000 (04:32 +0300)]
Issue #15566: Document encoding and errors parameters of TarInfo.frombuf().
Patch by Andy Holst.
Berker Peksag [Sun, 19 Apr 2015 01:32:23 +0000 (04:32 +0300)]
Issue #15566: Document encoding and errors parameters of TarInfo.frombuf().
Patch by Andy Holst.
Vinay Sajip [Sat, 18 Apr 2015 12:15:10 +0000 (13:15 +0100)]
Closes #23536: Clarified scope of fileConfig()'s API.
Vinay Sajip [Sat, 18 Apr 2015 12:14:10 +0000 (13:14 +0100)]
Issue #23536: Clarified scope of fileConfig()'s API.
Christian Heimes [Sat, 18 Apr 2015 03:54:02 +0000 (05:54 +0200)]
Remove local dead code. In both blocks dir is always greater 0.
Serhiy Storchaka [Fri, 17 Apr 2015 18:18:49 +0000 (21:18 +0300)]
Issue #20181: Converted the unicodedata module to Argument Clinic.
Serhiy Storchaka [Fri, 17 Apr 2015 18:05:18 +0000 (21:05 +0300)]
Issue #20184: Converted _dbm and _gdbm modules to Argument Clinic.
Berker Peksag [Fri, 17 Apr 2015 01:58:45 +0000 (04:58 +0300)]
Fix two typos in AbstractBasicAuthHandler documentation.
R David Murray [Thu, 16 Apr 2015 22:54:56 +0000 (18:54 -0400)]
#16914: fix test errors under -W error::BytesWarning.
There are doubtless other debug messages in smtplib that would trigger an
error if they were tested, but this fixes the things we do now test,
which is good enough for now.
R David Murray [Thu, 16 Apr 2015 21:24:52 +0000 (17:24 -0400)]
#16914: reflow paragraph and add missing versionchanged.
R David Murray [Thu, 16 Apr 2015 21:16:15 +0000 (17:16 -0400)]
News item for #16914.
R David Murray [Thu, 16 Apr 2015 21:14:42 +0000 (17:14 -0400)]
#16914: add timestamps to smtplib debugging output via new debuglevel 2.
Patch by Gavin Chappell and Maciej Szulik.
R David Murray [Thu, 16 Apr 2015 20:36:18 +0000 (16:36 -0400)]
#7159: generalize urllib prior auth support.
This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix. Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494, or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.
Patch by Akshit Khurana, docs mostly by me.
Christian Heimes [Thu, 16 Apr 2015 18:26:19 +0000 (20:26 +0200)]
Merge
Christian Heimes [Thu, 16 Apr 2015 18:25:03 +0000 (20:25 +0200)]
Update coverity modeling file to silence datetime warnings
R David Murray [Thu, 16 Apr 2015 16:15:09 +0000 (12:15 -0400)]
#18128: use standard +NNNN timezone format in POT-Creation-Date header.
Patch by Michael McFadden, with a few small style tweaks.
Christian Heimes [Thu, 16 Apr 2015 15:29:11 +0000 (17:29 +0200)]
Remove redundant check fro md5module.
CID
1294331 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)
Christian Heimes [Thu, 16 Apr 2015 15:25:45 +0000 (17:25 +0200)]
Remove redundant check for tb != NULL to shut up Coverity . It has been set to Py_None a couple of lines earlier.
CID
1291697 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking tb suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
Christian Heimes [Thu, 16 Apr 2015 15:21:54 +0000 (17:21 +0200)]
Fix typo in assert statement
Serhiy Storchaka [Thu, 16 Apr 2015 08:58:11 +0000 (11:58 +0300)]
Null merge
Serhiy Storchaka [Thu, 16 Apr 2015 08:54:14 +0000 (11:54 +0300)]
Backported tests from issue #20175.
Serhiy Storchaka [Thu, 16 Apr 2015 08:19:43 +0000 (11:19 +0300)]
Issue #20175: Converted the _io module to Argument Clinic.
Larry Hastings [Thu, 16 Apr 2015 03:02:12 +0000 (23:02 -0400)]
Issue #23935: Argument Clinic's understanding of format units
accepting bytes, bytearrays, and buffers is now consistent with
both the documentation and the implementation.
Guido van Rossum [Thu, 16 Apr 2015 00:40:07 +0000 (17:40 -0700)]
Remove spurious text from build instructions README.
It said "New text", an apparent test edit by MvL ages ago.
Ned Deily [Thu, 16 Apr 2015 00:11:47 +0000 (17:11 -0700)]
Issues #22980, 23969: For OS X, use PEP 3149-style file names for extension
module binaries, with a platform triple of just "darwin", resulting in
file names like:
_ssl.cpython-35m-darwin.so
rather than just _ssl.so as previously.
Instead of attempting to encode differences in CPU architecture and OS X
deployment targets in the file name as is done on other platforms,
these continue to be managed by the use of Apple multi-architecture
("fat") files, by the system dynamic loader, and by logic in higher-levels
like sysconfig.get_platform() and pip.
Berker Peksag [Wed, 15 Apr 2015 23:31:14 +0000 (02:31 +0300)]
Issue #23703: Fix a regression in urljoin() introduced in
901e4e52b20a .
Patch by Demian Brecht.
Steve Dower [Wed, 15 Apr 2015 22:06:05 +0000 (18:06 -0400)]
Issue #4254: Adds _curses.update_lines_cols() Patch by Arnon Yaari
doko@ubuntu.com [Wed, 15 Apr 2015 21:31:02 +0000 (23:31 +0200)]
#22980: fix triplet configure test for powerpc-linux-gnu
R David Murray [Wed, 15 Apr 2015 21:08:45 +0000 (17:08 -0400)]
#23949: Improve tuple unpacking error messages.
Patch by Arnon Yaari.