]> granicus.if.org Git - python/log
python
12 years ago#15015: Fix accessing an non-existing attribute.
Brian Quinlan [Mon, 11 Jun 2012 02:59:07 +0000 (12:59 +1000)]
#15015: Fix accessing an non-existing attribute.

12 years agounittest.mock minor doc update
Michael Foord [Sun, 10 Jun 2012 19:38:54 +0000 (20:38 +0100)]
unittest.mock minor doc update

12 years agoAdding patch.stopall method to unittest.mock
Michael Foord [Sun, 10 Jun 2012 19:36:32 +0000 (20:36 +0100)]
Adding patch.stopall method to unittest.mock

12 years agoExpand examples for ChainMap(). Improve markup.
Raymond Hettinger [Sun, 10 Jun 2012 18:39:44 +0000 (11:39 -0700)]
Expand examples for ChainMap().  Improve markup.

12 years ago1) State restrictions for the transform length.
Stefan Krah [Sun, 10 Jun 2012 14:50:55 +0000 (16:50 +0200)]
1) State restrictions for the transform length.

2) Switch argument order to match the function signature of mpd_calloc()
   (cosmetic change, since the order is irrelevant).

12 years agoSmall cleanup and optimization
Raymond Hettinger [Sun, 10 Jun 2012 05:51:39 +0000 (22:51 -0700)]
Small cleanup and optimization

12 years agoNote that the _asdict() method is outdated
Raymond Hettinger [Sun, 10 Jun 2012 02:15:26 +0000 (19:15 -0700)]
Note that the _asdict() method is outdated

12 years agoMinor reformatting (wrap fat lines, etc.) and create an __main__ file
Raymond Hettinger [Sun, 10 Jun 2012 01:46:45 +0000 (18:46 -0700)]
Minor reformatting (wrap fat lines, etc.) and create an __main__ file

12 years agoFix exception when calling reset_mock on a mock created with autospec
Michael Foord [Sat, 9 Jun 2012 16:31:59 +0000 (17:31 +0100)]
Fix exception when calling reset_mock on a mock created with autospec

12 years agoAdd one extra comparison to the _mpd_shortmul() case to avoid repetitive code.
Stefan Krah [Sat, 9 Jun 2012 13:28:36 +0000 (15:28 +0200)]
Add one extra comparison to the _mpd_shortmul() case to avoid repetitive code.

12 years agoNow that Defects are Exception subclasses, call super.
R David Murray [Sat, 9 Jun 2012 02:45:46 +0000 (22:45 -0400)]
Now that Defects are Exception subclasses, call super.

The behavior of MessageDefect is legacy behavior.  The chances anyone is
actually using the undocumented 'line' attribute is low, but it costs
little to retain backward compatibility.  Although one of the costs is
having to restore normal exception behavior in HeaderDefect.  On the
other hand, I'll probably add some specialized behavior there later.

12 years agoEnumerate all cases in the overflow detection strategy in mpd_qlog10().
Stefan Krah [Fri, 8 Jun 2012 22:01:28 +0000 (00:01 +0200)]
Enumerate all cases in the overflow detection strategy in mpd_qlog10().

12 years agoRelax datetime.timestamp() test around DST change
Alexander Belopolsky [Fri, 8 Jun 2012 17:00:27 +0000 (13:00 -0400)]
Relax datetime.timestamp() test around DST change

12 years agoRelax datetime.timestamp() test around DST change
Alexander Belopolsky [Fri, 8 Jun 2012 16:58:31 +0000 (12:58 -0400)]
Relax datetime.timestamp() test around DST change

12 years agoMerge.
Stefan Krah [Fri, 8 Jun 2012 16:55:22 +0000 (18:55 +0200)]
Merge.

12 years ago1) List relative error for _mpd_qln10().
Stefan Krah [Fri, 8 Jun 2012 16:41:33 +0000 (18:41 +0200)]
1) List relative error for _mpd_qln10().

2) Add rigorous error analysis to _mpd_qlog10 (ACL2 proofs exist).

3) Use the relative error as a basis for the interval generation in the
   correction loop (same as in _mpd_qln()).

12 years agoIssue #2736: Added datetime.timestamp() method.
Alexander Belopolsky [Fri, 8 Jun 2012 16:33:09 +0000 (12:33 -0400)]
Issue #2736: Added datetime.timestamp() method.

12 years ago#14814: Remove redundant code from ipaddress.IPv6Network
Hynek Schlawack [Fri, 8 Jun 2012 13:21:21 +0000 (15:21 +0200)]
#14814: Remove redundant code from ipaddress.IPv6Network

The strict checks and netmask computing don't make sense if constructed with
a ALL_ONES mask based on addresses. Also fix a bug due to mis-indentation of
a return statement in the same code block.

12 years agoMerge from 3.2, #12510
Terry Jan Reedy [Fri, 8 Jun 2012 00:04:17 +0000 (20:04 -0400)]
Merge from 3.2, #12510

12 years agoIssue #12510: Revise and triple # of calltip tests, with an eye to unittest
Terry Jan Reedy [Thu, 7 Jun 2012 23:41:04 +0000 (19:41 -0400)]
Issue #12510: Revise and triple # of calltip tests, with an eye to unittest
use. Make the get_entity 'method' a module function as it did not use 'self'.
Delete buggy _find_constructor function that is not needed, at least in 3.x.
Revise get_argspec so all tests pass.  Add and fix NEWS entries.

12 years agoMerge fixes for #13854 and #12157.
Richard Oudkerk [Thu, 7 Jun 2012 19:38:11 +0000 (20:38 +0100)]
Merge fixes for #13854 and #12157.

12 years agoIssue #11823: disassembly now shows argument counts on calls with keyword args
Alexander Belopolsky [Thu, 7 Jun 2012 18:28:14 +0000 (14:28 -0400)]
Issue #11823: disassembly now shows argument counts on calls with keyword args

12 years ago1) The overflow detection in mpd_qln() has a surprising number of case splits.
Stefan Krah [Thu, 7 Jun 2012 15:48:47 +0000 (17:48 +0200)]
1) The overflow detection in mpd_qln() has a surprising number of case splits.
   List all of them in the comment.

2) Use the recently stated relative error of _mpd_qln() to generate the
   interval for the exact value of ln(x). See also the comment in mpd_qexp().

12 years agoMerge from 3.2
Nick Coghlan [Thu, 7 Jun 2012 12:42:29 +0000 (22:42 +1000)]
Merge from 3.2

12 years agoNudge readers towards a more accurate mental model for loop else clauses
Nick Coghlan [Thu, 7 Jun 2012 12:41:34 +0000 (22:41 +1000)]
Nudge readers towards a more accurate mental model for loop else clauses

12 years agoRearrange code to beat an optimizer bug affecting Release x64 on windows
Kristján Valur Jónsson [Wed, 6 Jun 2012 21:58:08 +0000 (21:58 +0000)]
Rearrange code to beat an optimizer bug affecting Release x64 on windows
with VS2010sp1

12 years agoIssue #13854: Properly handle non-integer, non-string arg to SystemExit
Richard Oudkerk [Wed, 6 Jun 2012 18:04:57 +0000 (19:04 +0100)]
Issue #13854: Properly handle non-integer, non-string arg to SystemExit

Previously multiprocessing only expected int or str.  It also wrongly
used an exit code of 1 when the argument was a string instead of zero.

12 years agoIssue #12157: pool.map() does not handle empty iterable correctly
Richard Oudkerk [Wed, 6 Jun 2012 18:04:57 +0000 (19:04 +0100)]
Issue #12157: pool.map() does not handle empty iterable correctly

Initial patch by mouad

12 years ago1) Add error analysis comments to mpd_qln10() and _mpd_qln().
Stefan Krah [Wed, 6 Jun 2012 13:57:18 +0000 (15:57 +0200)]
1) Add error analysis comments to mpd_qln10() and _mpd_qln().

2) Simplify the precision adjustment code for values in [0.900, 1.15].

12 years agoClose #6203: Document that Python 3 sets LC_CTYPE at startup to the user's preferred...
Victor Stinner [Tue, 5 Jun 2012 23:37:37 +0000 (01:37 +0200)]
Close #6203: Document that Python 3 sets LC_CTYPE at startup to the user's preferred locale encoding

12 years agoSignal condition variables with the mutex held. Destroy condition variables
Kristján Valur Jónsson [Tue, 5 Jun 2012 22:17:42 +0000 (22:17 +0000)]
Signal condition variables with the mutex held.  Destroy condition variables
before their mutexes.

12 years agoFixes issue #15000: support the odd x32 abi on posixsubprocess's system call.
Gregory P. Smith [Tue, 5 Jun 2012 20:30:24 +0000 (13:30 -0700)]
Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call.

12 years agoFixes issue #15000: support the odd x32 abi on posixsubprocess's system call.
Gregory P. Smith [Tue, 5 Jun 2012 20:26:39 +0000 (13:26 -0700)]
Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call.

12 years agoAdd test for multiprocessing.Conditon.wait() and changset 3baeb5e13dd2
Richard Oudkerk [Tue, 5 Jun 2012 12:15:29 +0000 (13:15 +0100)]
Add test for multiprocessing.Conditon.wait() and changset 3baeb5e13dd2

12 years agoClose #11022: TextIOWrapper doesn't call locale.setlocale() anymore
Victor Stinner [Tue, 5 Jun 2012 11:43:22 +0000 (13:43 +0200)]
Close #11022: TextIOWrapper doesn't call locale.setlocale() anymore

open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False)
instead of locale.getpreferredencoding() in text mode if the encoding is not
specified. Don't change temporary the locale encoding using locale.setlocale(),
use the current locale encoding instead of the user preferred encoding.

Explain also in open() documentation that locale.getpreferredencoding(False) is
called if the encoding is not specified.

12 years ago#14814: ipaddress: refactor dup code, minor janitoring, bump coverage
Hynek Schlawack [Tue, 5 Jun 2012 09:55:58 +0000 (11:55 +0200)]
#14814: ipaddress: refactor dup code, minor janitoring, bump coverage

- remove duplicate netmask/hostmask code
- make two ifs more pythonic
- remove packed property for networks
- some minor pep8 stuff
- Test coverage is now at 97%, the rest are mostly unreachable safeguards.

12 years agoIssue #14711: os.stat_float_times() has been deprecated.
Victor Stinner [Mon, 4 Jun 2012 23:22:15 +0000 (01:22 +0200)]
Issue #14711: os.stat_float_times() has been deprecated.

12 years agoAdd a function lzma.open(), to match gzip.open() and bz2.open().
Nadeem Vawda [Mon, 4 Jun 2012 21:38:12 +0000 (23:38 +0200)]
Add a function lzma.open(), to match gzip.open() and bz2.open().

12 years agoAllow LZMAFile to accept modes with a "b" suffix.
Nadeem Vawda [Mon, 4 Jun 2012 21:36:24 +0000 (23:36 +0200)]
Allow LZMAFile to accept modes with a "b" suffix.

12 years agoSimplify usage of LZMAFile's fileobj support, like with BZ2File.
Nadeem Vawda [Mon, 4 Jun 2012 21:34:07 +0000 (23:34 +0200)]
Simplify usage of LZMAFile's fileobj support, like with BZ2File.

12 years agoAdd a function bz2.open(), to match gzip.open().
Nadeem Vawda [Mon, 4 Jun 2012 21:32:38 +0000 (23:32 +0200)]
Add a function bz2.open(), to match gzip.open().

12 years agoClarify acceptable values for BZ2File.__init__'s mode argument.
Nadeem Vawda [Mon, 4 Jun 2012 21:31:22 +0000 (23:31 +0200)]
Clarify acceptable values for BZ2File.__init__'s mode argument.

12 years agoMake BZ2File's fileobj support easier to use.
Nadeem Vawda [Mon, 4 Jun 2012 21:31:20 +0000 (23:31 +0200)]
Make BZ2File's fileobj support easier to use.

The fileobj argument was added during the 3.3 development cycle, so this change
does not break backward compatibility with 3.2.

12 years agoAdd fileobj support to gzip.open().
Nadeem Vawda [Mon, 4 Jun 2012 21:21:38 +0000 (23:21 +0200)]
Add fileobj support to gzip.open().

12 years agoIssue #14993: Use standard "unsigned char" instead of a unsigned char bitfield
Victor Stinner [Mon, 4 Jun 2012 20:52:12 +0000 (22:52 +0200)]
Issue #14993: Use standard "unsigned char" instead of a unsigned char bitfield

12 years ago#8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd.
R David Murray [Mon, 4 Jun 2012 19:55:51 +0000 (15:55 -0400)]
#8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd.

This clears up an error in detected by refleak mode that showed up when
test_smtplib was run after test_smtpd in the same refleak run.

12 years agoPrevent handle leak if CreateProcess() fails in multiprocessing
Richard Oudkerk [Mon, 4 Jun 2012 17:59:10 +0000 (18:59 +0100)]
Prevent handle leak if CreateProcess() fails in multiprocessing

12 years agoFix potential NameError in multiprocessing.Condition.wait()
Richard Oudkerk [Mon, 4 Jun 2012 17:59:07 +0000 (18:59 +0100)]
Fix potential NameError in multiprocessing.Condition.wait()

12 years agoMake Finalize reserve a reference to os.getpid in case called at shutdown
Richard Oudkerk [Mon, 4 Jun 2012 17:58:59 +0000 (18:58 +0100)]
Make Finalize reserve a reference to os.getpid in case called at shutdown

12 years agoAdd namespaceobject.h and namespaceobject.c to pythoncore.vcxproj
Richard Oudkerk [Mon, 4 Jun 2012 17:24:44 +0000 (18:24 +0100)]
Add namespaceobject.h and namespaceobject.c to pythoncore.vcxproj

12 years ago#14814: Remove dead code from ipaddress
Hynek Schlawack [Mon, 4 Jun 2012 16:14:02 +0000 (18:14 +0200)]
#14814: Remove dead code from ipaddress

_BaseNetwork contained (faulty) methods for creating string representations.
I've fixed them and put them to use by eliminating identical overrides.

12 years agoWhitespace normalization
Barry Warsaw [Mon, 4 Jun 2012 16:02:42 +0000 (12:02 -0400)]
Whitespace normalization

12 years agoPEP 421 requires that .name be lower case.
Barry Warsaw [Mon, 4 Jun 2012 16:01:56 +0000 (12:01 -0400)]
PEP 421 requires that .name be lower case.

12 years agoA few documentation improvements, spurred on by Brett's review.
Barry Warsaw [Mon, 4 Jun 2012 15:06:45 +0000 (11:06 -0400)]
A few documentation improvements, spurred on by Brett's review.

12 years agoAdd NEWS entry.
Barry Warsaw [Mon, 4 Jun 2012 13:51:53 +0000 (09:51 -0400)]
Add NEWS entry.

12 years agoTrunk merge.
Barry Warsaw [Mon, 4 Jun 2012 13:41:48 +0000 (09:41 -0400)]
Trunk merge.

12 years ago#14814: Use correct comparison for IP addresses
Hynek Schlawack [Mon, 4 Jun 2012 12:19:39 +0000 (14:19 +0200)]
#14814: Use correct comparison for IP addresses

ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which
fails.

12 years agoAdd usage note.
Raymond Hettinger [Mon, 4 Jun 2012 07:32:15 +0000 (00:32 -0700)]
Add usage note.

12 years agoSeparate key creation logic from the sequence class that memoizes its hash value.
Raymond Hettinger [Mon, 4 Jun 2012 07:21:14 +0000 (00:21 -0700)]
Separate key creation logic from the sequence class that memoizes its hash value.

12 years ago__GNUC__ does not imply gcc version is present, so just check for version (closes...
Benjamin Peterson [Mon, 4 Jun 2012 01:15:15 +0000 (18:15 -0700)]
__GNUC__ does not imply gcc version is present, so just check for version (closes #14994)

12 years agonull merge (not removing the new feature in 3.3)
Gregory P. Smith [Sun, 3 Jun 2012 21:40:32 +0000 (14:40 -0700)]
null merge (not removing the new feature in 3.3)

12 years agoRevert the modification of e.strerror in 3.2 as that kind of change could
Gregory P. Smith [Sun, 3 Jun 2012 21:39:26 +0000 (14:39 -0700)]
Revert the modification of e.strerror in 3.2 as that kind of change could
break someone's over specified test that depends on the exact error message.

12 years agonull merge from 3.2
Gregory P. Smith [Sun, 3 Jun 2012 21:36:38 +0000 (14:36 -0700)]
null merge from 3.2

12 years agoMove the 14992 note to the correct section.
Gregory P. Smith [Sun, 3 Jun 2012 21:36:01 +0000 (14:36 -0700)]
Move the 14992 note to the correct section.

12 years agoFixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
Gregory P. Smith [Sun, 3 Jun 2012 21:35:09 +0000 (14:35 -0700)]
Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
when the path existed and had the S_ISGID mode bit set when it was
not explicitly asked for.  This is no longer an exception as mkdir
cannot control if the OS sets that bit for it or not.

12 years agoFixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
Gregory P. Smith [Sun, 3 Jun 2012 21:30:44 +0000 (14:30 -0700)]
Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError
when the path existed and had the S_ISGID mode bit set when it was not
explicitly asked for.  This is no longer an exception as mkdir cannot control
if the OS sets that bit for it or not.

12 years agoEric Snow's implementation of PEP 421.
Barry Warsaw [Sun, 3 Jun 2012 20:18:47 +0000 (16:18 -0400)]
Eric Snow's implementation of PEP 421.

Issue 14673: Add sys.implementation

12 years ago#2658: Add test for issue fixed by fix for #1079.
R David Murray [Sun, 3 Jun 2012 16:27:07 +0000 (12:27 -0400)]
#2658: Add test for issue fixed by fix for #1079.

12 years agomerge 3.2
Martin v. Löwis [Sun, 3 Jun 2012 10:33:23 +0000 (12:33 +0200)]
merge 3.2

12 years agoPEP 3131: support non-ASCII characters in auto-completion of identifiers.
Martin v. Löwis [Sun, 3 Jun 2012 10:32:42 +0000 (12:32 +0200)]
PEP 3131: support non-ASCII characters in auto-completion of identifiers.

12 years agoDo not try to insert control characters.
Martin v. Löwis [Sun, 3 Jun 2012 10:26:09 +0000 (12:26 +0200)]
Do not try to insert control characters.

12 years agoDrop unused constant.
Martin v. Löwis [Sun, 3 Jun 2012 10:03:29 +0000 (12:03 +0200)]
Drop unused constant.

12 years agoMerge 3.2: issue #14937.
Martin v. Löwis [Sun, 3 Jun 2012 10:00:48 +0000 (12:00 +0200)]
Merge 3.2: issue #14937.

12 years agoIssue #14937: Perform auto-completion of filenames in strings even for non-ASCII...
Martin v. Löwis [Sun, 3 Jun 2012 09:55:32 +0000 (11:55 +0200)]
Issue #14937: Perform auto-completion of filenames in strings even for non-ASCII filenames.

12 years agomerge heads
Senthil Kumaran [Sun, 3 Jun 2012 08:16:39 +0000 (16:16 +0800)]
merge heads

12 years agoIssue 14989: http.server --cgi option can enable the CGI http server.
Senthil Kumaran [Sun, 3 Jun 2012 08:15:54 +0000 (16:15 +0800)]
Issue 14989: http.server --cgi option can enable the CGI http server.

12 years agomerge
Eli Bendersky [Sun, 3 Jun 2012 05:09:33 +0000 (08:09 +0300)]
merge

12 years agoIssue #14090: fix some minor C API problems in default branch (3.3)
Eli Bendersky [Sun, 3 Jun 2012 05:07:47 +0000 (08:07 +0300)]
Issue #14090: fix some minor C API problems in default branch (3.3)

12 years agoMerge with 3.2 #12510
Terry Jan Reedy [Sun, 3 Jun 2012 05:06:38 +0000 (01:06 -0400)]
Merge with 3.2 #12510

12 years agoIssue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
Terry Jan Reedy [Sun, 3 Jun 2012 04:27:54 +0000 (00:27 -0400)]
Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.

12 years agoIssue #14424: Document PyType_GenericAlloc, and fix the documentation of PyType_Gener...
Eli Bendersky [Sun, 3 Jun 2012 03:47:53 +0000 (06:47 +0300)]
Issue #14424: Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew

12 years agoFix unterminated keyword array passed to PyArg_ParseTupleAndKeywords
Eli Bendersky [Sun, 3 Jun 2012 03:09:42 +0000 (06:09 +0300)]
Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords

12 years agoIssue #14987: Add a missing import statement
Brett Cannon [Sun, 3 Jun 2012 02:28:42 +0000 (22:28 -0400)]
Issue #14987: Add a missing import statement

12 years agoMerge with 3.2 #10365
Terry Jan Reedy [Sun, 3 Jun 2012 00:24:21 +0000 (20:24 -0400)]
Merge with 3.2 #10365

12 years agoIssue 10365: Add and replace comments; condense defaulted attribute access.
Terry Jan Reedy [Sun, 3 Jun 2012 00:22:58 +0000 (20:22 -0400)]
Issue 10365: Add and replace comments; condense defaulted attribute access.
Code patch by Roger Serwy.

12 years ago#1079: Fix parsing of encoded words.
R David Murray [Sat, 2 Jun 2012 21:56:49 +0000 (17:56 -0400)]
#1079: Fix parsing of encoded words.

This is a behavior change: before this leading and trailing spaces were
stripped from ASCII parts, now they are preserved.  Without this fix we didn't
parse the examples in the RFC correctly, so I think breaking backward
compatibility here is justified.

Patch by Ralf Schlatterbeck.

12 years agonull merge
Sandro Tosi [Sat, 2 Jun 2012 21:42:08 +0000 (23:42 +0200)]
null merge

12 years agobackport c4bd68be5fc6 to 3.2
Sandro Tosi [Sat, 2 Jun 2012 21:41:19 +0000 (23:41 +0200)]
backport c4bd68be5fc6 to 3.2

12 years agoIssue #14926: merge with 3.2
Sandro Tosi [Sat, 2 Jun 2012 17:40:20 +0000 (19:40 +0200)]
Issue #14926: merge with 3.2

12 years agoIssue #14926: fix docstring highlight
Sandro Tosi [Sat, 2 Jun 2012 17:40:02 +0000 (19:40 +0200)]
Issue #14926: fix docstring highlight

12 years agomerge with 3.2
Sandro Tosi [Sat, 2 Jun 2012 16:22:31 +0000 (18:22 +0200)]
merge with 3.2

12 years agorefer to time.strftime
Sandro Tosi [Sat, 2 Jun 2012 16:22:02 +0000 (18:22 +0200)]
refer to time.strftime

12 years ago#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:20:53 +0000 (11:20 -0400)]
#14957: fix doc typo.

12 years ago#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:20:29 +0000 (11:20 -0400)]
#14957: fix doc typo.

12 years agoIssue #14814: use print() function
Sandro Tosi [Sat, 2 Jun 2012 15:16:33 +0000 (17:16 +0200)]
Issue #14814: use print() function

12 years agoIssue #14814: minor spelling fixes
Sandro Tosi [Sat, 2 Jun 2012 15:14:22 +0000 (17:14 +0200)]
Issue #14814: minor spelling fixes

12 years agomerge 3.2
Benjamin Peterson [Sat, 2 Jun 2012 06:57:50 +0000 (23:57 -0700)]
merge 3.2

12 years agodon't leak if the __class__ closure is set
Benjamin Peterson [Sat, 2 Jun 2012 06:57:36 +0000 (23:57 -0700)]
don't leak if the __class__ closure is set

12 years agoFix sporadic failure of test_time.test_process_time() on Windows
Victor Stinner [Fri, 1 Jun 2012 20:45:23 +0000 (22:45 +0200)]
Fix sporadic failure of test_time.test_process_time() on Windows

Use a threshold of 20 ms instead of 10 ms.

12 years ago#14957: clarify splitlines docs.
R David Murray [Fri, 1 Jun 2012 20:20:26 +0000 (16:20 -0400)]
#14957: clarify splitlines docs.

Initial patch by Michael Driscoll, I added the example.