Commit Graph

79390 Commits

Author SHA1 Message Date
Berker Peksag bb569362f4 Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
2016-03-02 19:44:24 +02:00
Martin Panter b6b1ab4fa8 Issue #26385: Cleanup NamedTemporaryFile if fdopen() fails, by SilentGhost 2016-02-29 00:31:38 +00:00
Georg Brandl 97b6e0bd1b Fix typo. 2016-02-28 21:09:36 +01:00
Raymond Hettinger 5a3e8e5bc0 Issue 13573: Document that csv.writer uses str() for floats instead of repr(). 2016-02-27 23:34:54 -08:00
Martin Panter ef85a1ac15 Issue #22836: Keep exception reports sensible despite errors 2016-02-28 00:18:43 +00:00
Ezio Melotti f9ce84b195 #26246: update copybutton.js after JQuery update. Patch by Liang-Bo Wang. 2016-02-27 08:39:36 +02:00
Martin Panter 83e9b57632 Issue #24421: Compile _math.c separately to avoid race condition 2016-02-03 05:19:44 +00:00
Georg Brandl a575839f25 Fix rstlint to also look for indented comments that should be directives. 2016-02-25 20:14:10 +01:00
Serhiy Storchaka ee7fe38d40 Issue #25801: Fixed resource warnings in test_zipfile64.
Patch by SilentGhost.
2016-02-25 12:55:19 +02:00
Ned Deily 7a7ad351b3 Issue #25136: Add reference to 'xcode-select --install' to Mac README. 2016-02-25 01:33:51 +11:00
Ned Deily 942f3de9cb Change OS X installer builds targeted for 10.10 and above to build
and link with a private copy of OpenSSL, like installers targeted
for 10.5 already do, since Apple has deprecated use of the system
OpenSSL and removed its header files from the Xcode 7 SDK.  Note
that this configuration is not currently used to build any
python.org-supplied installers and that the private copy of
OpenSSL requires its own root certificates.
2016-02-25 01:01:02 +11:00
Ned Deily 83abccbbc0 Issue #25136: Support Apple Xcode 7's new textual SDK stub libraries.
As of Xcode 7, SDKs for Apple platforms now include textual-format stub
libraries whose file names have a .tbd extension rather than the
standard OS X .dylib extension.  The Apple compiler tool chain handles
these stub libraries transparently and the installed system shared libraries
are still .dylibs.  However, the new stub libraries cause problems for
third-party programs that support building with Apple SDKs and make
build-time decisions based on the presence or paths of system-supplied
shared libraries in the SDK.  In particular, building Python itself with
an SDK fails to find system-supplied libraries during setup.py's build of
standard library extension modules.  The solution is to have
find_library_file() in Distutils search for .tbd files, along with
the existing types (.a, .so, and .dylib).  Patch by Tim Smith.
2016-02-25 00:55:24 +11:00
Martin Panter 098f6d0caa Issue #5824: Fix DatagramRequestHandler tests by binding the client socket 2016-02-24 04:45:33 +00:00
Martin Panter 39267c21cc Issue #22088: Clarify base-64 alphabets and which characters are discarded
* There are only two base-64 alphabets defined by the RFCs, not three
* Due to the internal translation, plus (+) and slash (/) are never discarded
* standard_ and urlsafe_b64decode() discard characters as well
2016-02-23 22:30:50 +00:00
Ned Deily 3058eb418a Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
current versions of OpenBSD and NetBSD.  Patch by A. Jesse Jiryu Davis.
2016-02-23 22:03:39 +11:00
Ned Deily 903783416b Issue #26417: Prevent spurious errors and incorrect defaults when
installing IDLE 2.7 on OS X: default configuration settings are
no longer installed from OS X specific copies.
2016-02-23 20:45:57 +11:00
Zachary Ware c46a2ebaff Issue #26268: Update Windows builds to use OpenSSL 1.0.2f 2016-02-22 04:08:30 -06:00
Martin Panter be9ddc1d11 Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name 2016-02-22 10:10:00 +00:00
Martin Panter 3e85838ee9 Fix errors in XML-RPC client example code
* httplib.HTTP (deprecated and does not work) → HTTPConnection
* Server (deprecated) → ServerProxy
2016-02-22 09:10:54 +00:00
Vinay Sajip 35bb78ef7b Added simple threading example to logging cookbook. 2016-02-20 19:02:04 +00:00
Martin Panter 59b9a16e72 Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage
* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
  files may need special care
* Filename taken from fileobj.name; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()
2016-02-19 23:34:56 +00:00
Georg Brandl d6dd0e6560 Closes #20169: fix inner links random doc. 2016-02-19 08:57:23 +01:00
Martin Panter 94035f3aa7 Issue #15608: Improve socketserver module documentation
* Add headings for each concrete and mix-in class and list methods and
  attributes under them
* Fix class and method cross references
* Changed RequestHandler to BaseRequestHandler and added class heading
* Pull out Stream/DatagramRequestHandler definitions
* Reordered the request handler setup(), handle(), finish() methods
* Document constructor parameters for the server classes
2016-02-19 03:27:46 +00:00
Martin Panter 63d1f47b49 Issue #26309: Rewrite test in main thread and avoid race condition 2016-02-19 02:16:42 +00:00
Martin Panter ba8474b77d Issue #26309: Shut down SocketServer request if verify_request() is false
Based on patch by Aviv Palivoda.
2016-02-18 10:43:55 +00:00
Benjamin Peterson 51b13e53fc fix typo (closes #26378) 2016-02-17 23:42:46 -08:00
Benjamin Peterson b2e3946d76 open the cert store readonly
Patch from Chi Hsuan Yen.
2016-02-17 22:13:19 -08:00
Ned Deily 1c2a7b5939 Issue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
versions 10.5 or higher.  Original patch by A. Jesse Jiryu Davis.
2016-02-15 16:51:24 +11:00
Ned Deily fdb959b8a3 Issue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f. 2016-02-15 16:42:36 +11:00
Charles-François Natali 674a3cd20b Issue #24303: Fix random EEXIST upon multiprocessing semaphores creation with
Linux PID namespaces enabled.
2016-02-12 22:39:21 +00:00
Georg Brandl c665ff6177 Closes #26320: fix stylesheet after Sphinx update. 2016-02-10 13:44:29 +01:00
Serhiy Storchaka 1c496178d2 Issue #25698: Importing module if the stack is too deep no longer replaces
imported module with the empty one.
2016-02-10 10:28:06 +02:00
Martin Panter 53ae0ba6e3 Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Martin Panter 2dafcc25a9 Issues #26310, #26311: Fix typos in the documentation 2016-02-10 01:17:51 +00:00
Serhiy Storchaka 78a54c0311 Issue #25983: Added tests for multi-argument type(). 2016-02-08 20:27:52 +02:00
Gregory P. Smith 3b5d61fa6c Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
2016-02-08 09:59:14 -08:00
Steve Dower db28718ebe Updates build to use SHA256 hash when signing files 2016-02-08 09:26:25 -08:00
Serhiy Storchaka 36ae29c759 Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.
2016-02-08 01:05:48 +02:00
Benjamin Peterson b59b04dd86 fix hash member name (closes #22847) 2016-02-06 22:36:06 -08:00
Martin Panter 00f19eff3e Issue #25179: Preparatory cleanup of existing docs on string formatting
* There was a link pointing to the section on the string.Formatter class (and
  multiple links in Python 3), when the section on the common format string
  syntax is probably more appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
  and this is tested in Python 3; see Issue #19729 for instance
2016-02-08 01:34:09 +00:00
Senthil Kumaran 9c61f2e45b Fix userinfo example presented in urllib2 howto. 2016-02-05 19:35:57 -08:00
Benjamin Peterson 4a0a9556fc fix debug assertion 2016-02-04 22:26:10 -08:00
Antoine Pitrou 225e7c0def Issue #22847: Improve method cache efficiency. 2014-11-15 00:56:27 +01:00
Martin Panter ade4097671 Issue #12923: Reset FancyURLopener's redirect counter even on exception
Based on patches by Brian Brazil and Daniel Rocco.
2016-02-04 06:01:35 +00:00
Zachary Ware bf3b89782f Python for .NET has moved to Github.
Reported by Denis Akhiyarov on docs@
2016-02-03 22:05:46 -06:00
Serhiy Storchaka 71b71763c5 Issue #25945: Fixed bugs in functools.partial.
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:59 +02:00
Martin Panter 1d269c1067 Issue #26244: Clarify default zlib compression level in documentation
Based on patch by Aviv Palivoda.
2016-02-03 07:06:33 +00:00
Martin Panter 886aba4737 Issue #26173: Separate bad cert file tests and client rejection test
Test test_wrong_cert() runs a server that rejects the client's certificate,
so ECONNRESET is reasonable in addition to SSLError. On the other hand, the
other three tests don't even need to run a server because they are just
testing the parsing of invalid certificate files.

This should fix intermittent failures on Windows where ECONNRESET was not
being caught.
2016-02-01 21:58:11 +00:00
Zachary Ware dc63e9c676 Issue #25934: Default to /fp:strict for ICC builds 2016-01-29 19:06:00 -06:00
Martin Panter fd8e8504e2 Issue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pem
Testing for a non-existing certificate file is already done in test_errors().
The wrongcert.pem test was originally testing behaviour with a mismatched
certificate.
2016-01-30 02:36:00 +00:00