Commit Graph

45109 Commits

Author SHA1 Message Date
Ned Deily 9a1383e380 #10820: Fix OS X framework installs to support version-specific
scripts (implemented in #10679).
2011-01-10 22:14:25 +00:00
Alexander Belopolsky dc004a3ad6 Removed time.ctime from the list of functions that take a time tuple argument 2011-01-10 21:58:52 +00:00
Alexander Belopolsky bd96b06fd8 Added entries about removal of year 1900 limit. 2011-01-10 21:55:34 +00:00
Terry Reedy aacfd4a0cf Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'. 2011-01-10 21:27:49 +00:00
Raymond Hettinger eb70b90097 Misspelling. 2011-01-10 21:26:49 +00:00
Raymond Hettinger 05ce079a1c Missed two source links 2011-01-10 21:16:07 +00:00
Raymond Hettinger 4f707fd316 Separate source link from main text. 2011-01-10 19:54:11 +00:00
Alexander Belopolsky 04da1e013a Fixed a footnote reference 2011-01-10 19:14:38 +00:00
Raymond Hettinger de2e618eb9 Fix typos. 2011-01-10 05:40:57 +00:00
Raymond Hettinger 1048094037 Move source links to consistent location and remove wordy, big yellow boxes. 2011-01-10 03:26:08 +00:00
Antoine Pitrou a4815caa7c Issue #10872: The repr() of TextIOWrapper objects now includes the mode
if available.

(at Georg's request)
2011-01-09 20:38:15 +00:00
Martin v. Löwis a6c91f5e3b Add Ned Deily. 2011-01-09 18:28:07 +00:00
Łukasz Langa d7e81cc5fa #10874: test_urllib2 shouldn't use `is` operator for comparing strings
Patch by Adreas Stührk.
2011-01-09 18:18:53 +00:00
Georg Brandl 04536b0edf #10871: "file" does not exist anymore in Python 3. Also adapt the reprs of opened file objects. 2011-01-09 09:31:01 +00:00
Georg Brandl c9007081ef Wrap some long examples and signatures. 2011-01-09 09:04:08 +00:00
Georg Brandl efb6902c3d Add missing line. 2011-01-09 07:50:48 +00:00
Georg Brandl 619e7ba814 #10869: do not visit root node twice in ast.increment_lineno(). 2011-01-09 07:38:51 +00:00
R. David Murray 5b2d9ddf69 #5871: protect against header injection attacks.
This makes Header.encode throw a HeaderParseError if it winds up
formatting a header such that a continuation line has no leading
whitespace and looks like a header.  Since Header accepts values
containing newlines and preserves them (and this is by design), without
this fix any program that took user input (say, a subject in a web form)
and passed it to the email package as a header was vulnerable to header
injection attacks.  (As far as we know this has never been exploited.)

Thanks to Jakub Wilk for reporting this vulnerability.
2011-01-09 02:35:24 +00:00
Raymond Hettinger e3ee66f141 Issue #10357: Clarify what it means to be a mapping. 2011-01-08 23:44:37 +00:00
Georg Brandl 4ad934f63c zlib only works with bytes objects. 2011-01-08 21:04:25 +00:00
Alexander Belopolsky 2997837158 Fixed documentation to reflect recent changes for years < 1900. 2011-01-08 20:47:21 +00:00
Victor Stinner 3ec899fc0d NEWS: merge #1777412 and #10827 entries 2011-01-08 16:37:47 +00:00
Victor Stinner f7d019ec9a Issue #1777412: document the change in the NEWS file 2011-01-08 16:31:24 +00:00
Raymond Hettinger c08ea61373 Markup fix 2011-01-08 10:32:31 +00:00
Antoine Pitrou 5d938cb366 Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet(). 2011-01-08 10:28:11 +00:00
Raymond Hettinger 83b1ab0d6a Issue 9717: Segregate and improve the documentation of "in-place" operators
in the operator module.
2011-01-08 10:26:53 +00:00
Antoine Pitrou 160fd938ed Fix test_ssl after r87849 2011-01-08 10:23:29 +00:00
Antoine Pitrou 67b212e608 Issue #10859: Make `contextlib.GeneratorContextManager` officially
private by renaming it to `_GeneratorContextManager`.
2011-01-08 09:55:31 +00:00
Georg Brandl d97b7b5158 #10855: document close() semantics of wave objects. 2011-01-08 09:45:43 +00:00
Raymond Hettinger 5254e9700e Issue 10533: Need example of using __missing__. 2011-01-08 09:35:38 +00:00
Raymond Hettinger 0ab10e4600 Issue #10813: Small improvement to decimal money format recipe. 2011-01-08 09:03:11 +00:00
Raymond Hettinger 23f9fc3448 Issue #10042: Fixed the total_ordering decorator to handle cross-type
comparisons that could lead to infinite recursion.
2011-01-08 07:01:56 +00:00
Victor Stinner 06ec45e2f8 Issue #10864: limit year to [1; 9999] for strftime() on Solaris 2011-01-08 03:35:36 +00:00
Victor Stinner f332abbf15 test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.de 2011-01-08 03:16:05 +00:00
Victor Stinner 301f1217ac Issue #1777412: Remove all limits on tm_year from time.strftime()
The buildbots will tell us which platform does support or not negative years.
2011-01-08 03:06:52 +00:00
Victor Stinner af5aee57c9 Issue #1777412: fix test_time for Mac OS X and OpenIndiana 2011-01-08 02:46:33 +00:00
Victor Stinner 736913269e Issue #1777412: test large years value for strftime('%Y') 2011-01-08 02:00:24 +00:00
Victor Stinner 73ea29cb03 Issue #1777412: strftime() accepts year >= 1 instead of year >= 1900
* With Visual Studio, year have to be in [1; 9999]
 * Add more tests on the year field
2011-01-08 01:56:31 +00:00
Alexander Belopolsky 0dd06f4082 Fixed error handling branches. Thanks
Victor Stinner for pointing this out.
2011-01-08 01:23:02 +00:00
Alexander Belopolsky b8bb4664fc Issue #1777412: extended year range of strftime down to 1000. 2011-01-08 00:13:34 +00:00
R. David Murray 9253214fd9 #10686: recode non-ASCII headers to 'unknown-8bit' instead of ?s.
This applies only when generating strings from non-RFC compliant binary
input; it makes the existing recoding behavior more consistent (ie:
now no data is lost when recoding).
2011-01-07 23:25:30 +00:00
R. David Murray 6f0022d84a Fix formatting of values with embedded newlines when rfc2047 encoding
Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word.  Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.
2011-01-07 21:57:25 +00:00
Raymond Hettinger 7088abdca6 Revert r87821 which moved the source link to the wrong section (from the module intro covering the module to a section on thread imports). 2011-01-07 21:54:18 +00:00
Antoine Pitrou 3be412d971 Put NEWS entry in the right section. 2011-01-07 21:47:02 +00:00
Antoine Pitrou b7fb2e25fb Issue #8020: Avoid a crash where the small objects allocator would read
non-Python managed memory while it is being modified by another thread.
Patch by Matt Bandy.
2011-01-07 21:43:59 +00:00
Raymond Hettinger 1122fa2eb4 Revert r87823 which moved the source link to the wrong section. 2011-01-07 21:17:56 +00:00
Raymond Hettinger 32e8fea396 Update the digest of PEP 3333 based on comments for Phillip Eby. 2011-01-07 21:04:30 +00:00
Georg Brandl 2f2a9f772d Fix indent. 2011-01-07 20:58:25 +00:00
Raymond Hettinger fc90213f53 Combine the two seealso sections. 2011-01-07 20:33:09 +00:00
Alexander Belopolsky c64708ae48 Issue #10827: Changed the rules for 2-digit years. The time.asctime
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise.  The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.
2011-01-07 19:59:19 +00:00