Commit graph

77828 commits

Author SHA1 Message Date
Senthil Kumaran
e9853daff9 Refactor test_urllib2. Include test_HTTPError_interface under MiscTests 2013-03-19 12:07:43 -07:00
R David Murray
660e89b163 Merge: #17443: Fix buffering in IMAP4_stream.
In Python2 Popen uses *FILE objects, which wind up buffering even though
subprocess defaults to no buffering.  In Python3, subprocess streams really
are unbuffered by default, but the imaplib code assumes read is buffered.  This
patch uses the default buffer size from the io module to get buffered streams
from Popen.

Much debugging work and patch by Diane Trout.

The imap protocol is too complicated to write a test for this simple
change with our current level of test infrastructure.
2013-03-19 13:56:54 -04:00
R David Murray
7889944b83 Merge: #17443: Fix buffering in IMAP4_stream.
In Python2 Popen uses *FILE objects, which wind up buffering even though
subprocess defaults to no buffering.  In Python3, subprocess streams really
are unbuffered by default, but the imaplib code assumes read is buffered.  This
patch uses the default buffer size from the io module to get buffered streams
from Popen.

Much debugging work and patch by Diane Trout.

The imap protocol is too complicated to write a test for this simple
change with our current level of test infrastructure.
2013-03-19 13:56:01 -04:00
R David Murray
fcb6d6a3b3 #17443: Fix buffering in IMAP4_stream.
In Python2 Popen uses *FILE objects, which wind up buffering even though
subprocess defaults to no buffering.  In Python3, subprocess streams really
are unbuffered by default, but the imaplib code assumes read is buffered.  This
patch uses the default buffer size from the io module to get buffered streams
from Popen.

Much debugging work and patch by Diane Trout.

The imap protocol is too complicated to write a test for this simple
change with our current level of test infrastructure.
2013-03-19 13:52:33 -04:00
Serhiy Storchaka
ed1fe6be06 Fix usage of the unittest.skip decorator. 2013-03-19 13:27:24 +02:00
Serhiy Storchaka
e185341bfa Fix usage of the unittest.skip decorator. 2013-03-19 13:27:05 +02:00
Serhiy Storchaka
ae4ef4d2ff Fix usage of the unittest.skip decorator. 2013-03-19 13:25:20 +02:00
Senthil Kumaran
aced69fd3f #17460 - merge from 3.3 2013-03-19 01:22:56 -07:00
Ezio Melotti
3ab68a49d1 Null merge 7127fbc363bb. 2013-03-19 10:13:28 +02:00
Senthil Kumaran
2f306c03d3 #17460 - merge from 3.2 2013-03-19 00:58:46 -07:00
Senthil Kumaran
0492ec07e0 #17460 - Adding relevant warning messages regarding strict removal in docs 2013-03-19 00:51:08 -07:00
R David Murray
ac0cea5fab Merge: #17476: make allmethods actually return all methods.
This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
2013-03-19 02:47:44 -04:00
Benjamin Peterson
3a61943b7b bump Python-ast.c 2013-03-18 23:40:53 -07:00
Benjamin Peterson
7654ab9ef0 placate msvc 2013-03-18 23:39:53 -07:00
R David Murray
52dfc74080 #17476: make allmethods actually return all methods.
This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
2013-03-19 02:32:35 -04:00
R David Murray
9929bc543a #17476: make allmethods actually return all methods.
This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
2013-03-19 02:31:06 -04:00
Benjamin Peterson
dc41f552a2 merge heads 2013-03-18 23:28:07 -07:00
Benjamin Peterson
b72406b8fa refactor to fix refleaks 2013-03-18 23:24:41 -07:00
Benjamin Peterson
6fba3dbce0 sprinkle const 2013-03-18 23:13:31 -07:00
R David Murray
455f296188 #17464: improve pydoc test coverage.
Patch by Matt Bachmann.
2013-03-19 00:00:33 -04:00
Senthil Kumaran
41518b4af0 #17474 - Remove the various deprecated methods of Request class. 2013-03-18 18:06:00 -07:00
Michael Foord
80cbc9e998 Closes issue 16709. unittest test discovery sorts test files for consistent test ordering 2013-03-18 17:50:12 -07:00
Senthil Kumaran
7f6d79721d #10050 : merge to default 2013-03-18 17:10:45 -07:00
Senthil Kumaran
6227c6952e #10050 - Document DeprecationWarnings for URLopener and FancyURLopener (msg172874 ) 2013-03-18 17:09:50 -07:00
Benjamin Peterson
45c9704b73 use the HTTPS for pypi upload 2013-03-18 15:20:56 -07:00
Michael Foord
35266f78b7 Merge 2013-03-18 15:04:33 -07:00
Michael Foord
f575230981 Documentation corrections for unittest.mock 2013-03-18 15:04:03 -07:00
R David Murray
1a48b9dd7d #5024: whichhdr now returns the frame count for WAV files.
Patch by Ned Jackson Lovely based on a suggestion by Robert Pyle.
2013-03-18 17:42:42 -04:00
Senthil Kumaran
052ddb01b3 #17460: Remove the strict argument of HTTPConnection and removing the
DeprecationWarning being issued from 3.2 onwards.
2013-03-18 14:11:41 -07:00
Benjamin Peterson
aad1d87339 move declaration to top of block 2013-03-18 10:59:41 -07:00
Benjamin Peterson
57048b6f9f add Sven Brauch for his #16795 contribution 2013-03-18 10:52:04 -07:00
Benjamin Peterson
cda75be02a unify some ast.argument's attrs; change Attribute column offset (closes #16795)
Patch from Sven Brauch.
2013-03-18 10:48:58 -07:00
Andrew Svetlov
c45e041bff Issue #17463: Fix test discovery for test_pdb.py 2013-03-18 10:10:08 -07:00
Andrew Svetlov
f0efea0841 Issue #17463: Fix test discovery for test_pdb.py 2013-03-18 10:09:50 -07:00
Giampaolo Rodola'
a77d7a52e8 (issue 17452 / ftplib) fix TypeError occurring in case ssl module is not installed 2013-03-18 09:59:15 +01:00
R David Murray
0351928359 Merge #17448: Make test_sax skip if there are no xml parsers.
Patch by Rafael Santos.
2013-03-18 00:21:43 -04:00
R David Murray
f3a1b6efe0 Merge #17448: Make test_sax skip if there are no xml parsers.
Patch by Rafael Santos.
2013-03-18 00:20:43 -04:00
R David Murray
a846f5ace8 #17448: Make test_sax skip if there are no xml parsers.
Patch by Rafael Santos.
2013-03-18 00:18:12 -04:00
R David Murray
fbb1815491 Merge #16057: Clarify why the base method default is called in custom encoders.
Original patch by Kushal Das.
2013-03-17 21:53:48 -04:00
R David Murray
1f2a49cfc6 Merge #16057: Clarify why the base method default is called in custom encoders.
Original patch by Kushal Das.
2013-03-17 21:53:23 -04:00
R David Murray
dd246171e4 #16057: Clarify why the base method default is called in custom encoders.
Original patch by Kushal Das.
2013-03-17 21:52:35 -04:00
Brett Cannon
5a948a7eee merge 2013-03-17 15:49:21 -07:00
Brett Cannon
3e2fe05e62 Issue #16880: _imp.load_dynamic() is not defined on a platform that
does not support dynamic loading (e.g. Atari), so make sure that imp
doesn't assume it always exists.

Patch by Christian Heimes.
2013-03-17 15:48:16 -07:00
Terry Jan Reedy
15cddb498e Merge with 3.3 2013-03-17 15:29:19 -04:00
Terry Jan Reedy
b271727bad Merge with 3.2 2013-03-17 15:28:52 -04:00
Terry Jan Reedy
f3460414d5 Issue #17415: Trim trailing whitespace 2013-03-17 15:28:10 -04:00
Terry Jan Reedy
a52c2d6d2f Merge with 3.3 2013-03-17 15:25:12 -04:00
Terry Jan Reedy
3380170ea5 Merge with 3.2 2013-03-17 15:22:00 -04:00
Terry Jan Reedy
ec6e132987 Issue #17415: Clarify 'this' referent by moving containing sentence just after
the sentence referred to. Make other minor edits to improve flow.
2013-03-17 15:21:26 -04:00
Benjamin Peterson
2481899acd merge heads 2013-03-16 15:39:42 -07:00