Serhiy Storchaka
fdda200195
Issue #19137 : The pprint module now correctly formats empty set and frozenset
...
and instances of set and frozenset subclasses.
2013-10-02 11:40:26 +03:00
Barry Warsaw
3760d97f9b
2.6 merge
2013-10-01 11:39:08 -04:00
Barry Warsaw
aa914509d3
Typo caught by : Arfrever Frehtes Taifersar Arahesis.
2013-10-01 11:38:38 -04:00
Barry Warsaw
be1950d059
Bump to 2.6.9rc1
2013-09-30 20:34:29 -04:00
Barry Warsaw
290df2ced8
Regenerate pydoc_topics.py
2013-09-30 20:31:56 -04:00
Barry Warsaw
d5849f545e
- Issue #16040 : CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
...
prevent readline() calls from consuming too much memory. Patch by Jyrki
Pulliainen.
2013-09-30 19:09:29 -04:00
Barry Warsaw
42faa55124
- Issue #16040 : CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
...
prevent readline() calls from consuming too much memory. Patch by Jyrki
Pulliainen.
2013-09-30 18:35:15 -04:00
Antoine Pitrou
923852857d
Issue #12641 : Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
...
Patch by Oscar Benjamin.
2013-09-30 22:13:17 +02:00
Barry Warsaw
c545a5ebd6
- Issue #16041 : CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
...
prevent readline() calls from consuming too much member. Patch by Jyrki
Pulliainen.
2013-09-30 15:56:29 -04:00
Senthil Kumaran
a719eed4d9
Code improvement. Review comment by Eric V. Smith
2013-09-29 18:57:42 -07:00
Barry Warsaw
6c1bb7b4e3
- Issue #16037 : HTTPMessage.readheaders() raises an HTTPException when more
...
than 100 headers are read. Adapted from patch by Jyrki Pulliainen.
2013-09-29 13:59:06 -04:00
Richard Oudkerk
c54960723f
Issue #19112 : avoid using function defined in method.
2013-09-29 17:10:40 +01:00
Benjamin Peterson
61f901c882
remove duplicate method ( closes #19127 )
2013-09-29 11:15:31 -04:00
Benjamin Peterson
0e234e60e6
condense two tests with the same name ( closes #19114 )
2013-09-29 11:13:27 -04:00
Benjamin Peterson
f20cf944ab
move helper function into its test method ( closes #19112 )
2013-09-29 11:08:04 -04:00
Antoine Pitrou
0879b168bf
Issue #4366 : Fix building extensions on all platforms when --enable-shared is used.
2013-09-29 01:48:40 +02:00
Benjamin Peterson
a094f04e7b
fix duplicate test names ( closes #19115 )
...
Patch by Xavier de Gaye.
2013-09-28 15:12:37 -04:00
Serhiy Storchaka
cfa5574405
Issue #18950 : Fix miscellaneous bugs in the sunau module.
...
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read and Au_write now correctly
work with file object if start file position is not a zero.
2013-09-28 21:31:36 +03:00
Barry Warsaw
d6fddf3d15
- Issue #16038 : CVE-2013-1752: ftplib: Limit amount of data read by
...
limiting the call to readline(). Original patch by Michał
Jastrzębski and Giampaolo Rodola.
with test fixes by Serhiy Storchaka.
2013-09-25 09:36:58 -04:00
Barry Warsaw
4e95d60191
- Issue #16039 : CVE-2013-1752: Change use of readline in imaplib module to
...
limit line length. Patch by Emil Lind.
2013-09-22 16:07:09 -04:00
Nick Coghlan
254a377222
This check can still fail on RHEL6
2013-09-22 19:36:09 +10:00
Serhiy Storchaka
60bf0e4daa
Issue #18050 : Fixed an incompatibility of the re module with Python 2.7.3
...
and older binaries.
2013-09-20 21:25:53 +03:00
R David Murray
f1c1cd9b3b
Merge #14984 : only import pwd on POSIX.
2013-09-18 08:50:11 -04:00
R David Murray
9e27eda325
#14984 : only import pwd on POSIX.
2013-09-18 08:49:25 -04:00
R David Murray
c64566e30f
#19037 : adjust file times *before* moving maildir files into place.
...
This avoids race conditions when other programs are monitoring
the maildir directory. Patch by janzert.
2013-09-18 08:35:45 -04:00
R David Murray
ba58e1d827
Merge: Add versionchanged for #14984 , remove extra blank from string.
2013-09-17 20:10:23 -04:00
R David Murray
137b572d55
Add versionchanged for #14984 , remove extra blank from string.
2013-09-17 20:08:09 -04:00
Serhiy Storchaka
e4818f6937
Remove the use of non-existing re.ASCII.
...
(fixes a regression in 3d46ef0c62c5, issue #18873 )
2013-09-17 10:09:08 +03:00
Serhiy Storchaka
e787bce79c
Issue #18873 : IDLE, 2to3, and the findnocoding.py script now detect Python
...
source code encoding only in comment lines.
2013-09-17 00:00:46 +03:00
R David Murray
74213e4ee9
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-16 14:32:54 -04:00
R David Murray
4189b67a66
#14984 : On POSIX, enforce permissions when reading default .netrc.
...
Initial patch by Bruno Piguet.
This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it. Fixing that issue will be an enhancement.
2013-09-16 13:48:44 -04:00
Eli Bendersky
e207e38c53
Close #18945 : Add tests for tempfile name collision handling.
...
Patch by Vlad Shcherbina
2013-09-15 12:08:14 -07:00
Andrew Kuchling
503baf9ecd
#16042 : CVE-2013-1752: Limit amount of data read by limiting the call to readline().
...
The SSLFakeFile.readline() method needs to support limiting readline() as
well. It's not a full emulation of readline()'s signature, but this class
is only used by smtplib's code, so it doesn't have to be.
Modified version of original patch by Christian Heimes.
2013-09-15 13:11:47 -04:00
Raymond Hettinger
39659f22fa
Issue #19018 : The heapq.merge() function no longer suppresses IndexError
2013-09-14 22:17:39 -07:00
Ezio Melotti
bf7e8656b5
#18981 : fix a typo in a comment (noticed by Anoop Thomas Mathew).
2013-09-13 23:52:12 +03:00
Senthil Kumaran
d4fac04fde
Fix SimpleHTTPServer's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:18:55 -07:00
Serhiy Storchaka
b06f536cb7
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
...
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
2013-09-13 07:52:00 +03:00
Senthil Kumaran
5d253efb06
Automated merge with file:///Users/skumaran/python/cpython
2013-09-11 22:56:34 -07:00
Senthil Kumaran
37851d0e55
Improve the docstring of random.shuffle. Inform users not to provide int arg.
...
Addresses issue #14927
2013-09-11 22:52:58 -07:00
Serhiy Storchaka
e03c74a1b6
Issue #18988 : The "Tab" key now works when a word is already autocompleted.
2013-09-11 22:49:06 +03:00
Mark Dickinson
8fdd9deb45
Docstring typo fix: Arithmentic -> Arithmetic.
2013-09-09 10:32:08 +01:00
Serhiy Storchaka
9402533cb1
Fixed tests with Tcl/Tk <8.5 ( closes #18964 ).
2013-09-08 20:32:56 +03:00
Senthil Kumaran
023c3e74a6
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
...
Addresses issue #18438
2013-09-07 23:18:53 -07:00
Michael Foord
050e9e5c59
Closes issue 14971.
...
unittest test discovery no longer gets confused when a function
has a different __name__ than its name in the TestCase class dictionary.
2013-09-08 15:34:27 +12:00
Eli Bendersky
8c7e925f6e
Close #18849 : Fixed a Windows-specific tempfile bug where collision with an
...
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:17:15 -07:00
Vinay Sajip
fb03696fda
Issue #18941 : Respected delay when doing rollover.
2013-09-06 10:24:08 +01:00
Vinay Sajip
6d7e29651c
Issue #18940 : Handled low-volume logging when delay is True.
2013-09-06 10:09:45 +01:00
Serhiy Storchaka
6db9e88eff
Issue #18830 : inspect.getclasstree() no more produces duplicated entries even
...
when input list contains duplicates.
2013-09-05 17:28:10 +03:00
Antoine Pitrou
213fec4bff
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Christian Heimes
bde2985f1d
Python 2.6's ssl module has neither OPENSSL_VERSION_INFO nor _OPENSSL_API_VERSION
2013-09-03 14:47:00 +02:00
Terry Jan Reedy
71b2ded05e
Silence deprecation warning in test_mmap for ValueError.message.
...
Replacement is from 3.3, with 'p' added to make '...Regexp'.
2013-08-31 21:14:00 -04:00
Terry Jan Reedy
0c534a4624
Silence deprecation warning in test_unittest for 'None > 1'.
...
This is the same change that was made in 3.x when this became an error.
2013-08-31 20:37:21 -04:00
Terry Jan Reedy
4c42735a99
Issue #18489 : Add complete, gui-free tests for idlelib.SearchEngine.
...
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:08 -04:00
Antoine Pitrou
33fc744ea3
Issue #18851 : Avoid a double close of subprocess pipes when the child process fails starting.
2013-08-30 23:38:13 +02:00
Charles-François Natali
30a5445b30
Issue #18418 : After fork(), reinit all threads states, not only active ones.
...
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:30:50 +02:00
Charles-François Natali
5aac8b7c2c
Issue #18643 : Fix some test_socket failures due to large default socket buffer
...
sizes.
2013-08-29 19:00:30 +02:00
Ezio Melotti
290c6b3446
#18833 : add a test for test_telnetlib. Patch by Alex Volkov.
2013-08-25 23:56:43 +03:00
Charles-François Natali
b0042000c4
Merge.
2013-08-25 18:27:34 +02:00
Charles-François Natali
4c53314475
Issue #18763 : subprocess: The file descriptors are now closed after calling the
...
preexec_fn callback, which may open file descriptors.
2013-08-25 18:22:49 +02:00
Serhiy Storchaka
879a213736
Issue #18817 : Fix a resource warning in Lib/aifc.py demo.
2013-08-25 19:12:33 +03:00
Christian Heimes
a0c8373e32
Fix test
2013-08-25 14:44:27 +02:00
Christian Heimes
8f65ef8853
Issue #18709 : Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
2013-08-25 14:12:41 +02:00
Christian Heimes
f869a9484a
Issue #18709 : Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
2013-08-25 14:12:41 +02:00
Antoine Pitrou
e758715144
Issue #18756 : make test_urandom_failure more robust by executing its code in a subprocess
2013-08-24 20:52:27 +02:00
Ezio Melotti
6c61a5afef
#18798 : fix typo in test_fcntl. Patch by Vajrasky Kok.
2013-08-23 23:06:31 +03:00
Barry Warsaw
82f8828317
- Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for `rfc822Name` (email), `dNSName` (DNS) and
`uniformResourceIdentifier` (URI).
2013-08-23 13:26:49 -04:00
Serhiy Storchaka
b445558d84
Issue #16809 : Fixed some tkinter incompabilities with Tcl/Tk 8.6.
2013-08-22 17:53:16 +03:00
Serhiy Storchaka
2ac1c1a31d
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:45 +03:00
Antoine Pitrou
78254dc6fc
Issue #18792 : Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
2013-08-22 00:39:46 +02:00
Serhiy Storchaka
4203570d01
Issue #17119 : Fixed integer overflows when processing large Unicode strings
...
and tuples in the tkinter module.
2013-08-21 21:46:12 +03:00
Barry Warsaw
f880e5d5ea
Fix UnboundLocalError regression due to previous incorrect fix for
...
issue 16248.
2013-08-20 20:35:20 -04:00
Serhiy Storchaka
c360389453
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00
Serhiy Storchaka
83737c632c
Issue #2537 : Remove breaked check which prevented valid regular expressions.
...
Patch by Meador Inge.
See also issue #18647 .
2013-08-19 23:20:07 +03:00
Serhiy Storchaka
0364134fc8
Issue #18647 : A regular expression in the doctest module rewritten so that
...
determined minimal width of repeated subexpression is >0 (an empty line was
not matched in any case).
2013-08-19 23:04:52 +03:00
Serhiy Storchaka
34ecb118f1
Issue #18647 : Correctly bound calculated min/max width of a subexpression.
...
Now max width is MAXREPEAT on 32- and 64-bit platforms when one of
subexpressions is unbounded repetition.
2013-08-19 22:53:46 +03:00
Terry Jan Reedy
41fca3e482
Issue #18489 : idlelib.SearchEngine - add docstrings
...
(original patch by Phil Webster).
2013-08-19 01:05:09 -04:00
Terry Jan Reedy
a81e969144
Issue #18592 : whitespace
2013-08-18 18:27:02 -04:00
Terry Jan Reedy
9946a28988
Issue #18592 : Add docstrings to file being tested (idlelib.SearchDialogBase.py).
2013-08-18 18:22:34 -04:00
Ezio Melotti
419e23cbb0
#18466 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:56:09 +03:00
Ezio Melotti
5dd99ebbc2
#18741 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:07:38 +03:00
Ezio Melotti
f5469cff1f
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:43:51 +03:00
Christian Heimes
88b174c977
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:54:47 +02:00
Antoine Pitrou
326ec048bf
test_execvpe_with_bad_arglist shouldn't be in URandomTests
2013-08-16 20:56:12 +02:00
Antoine Pitrou
f48a67b317
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Terry Jan Reedy
1703df6c93
Issue #18732 : Remove unused* parameter output_sep from IdleHistory.History
...
and paired splits and joins that do nothing when output_sep is its default \n.
*It in unused in that the class in only instantiated once, with the default.
Make a few other changes in .fetch and its test.
2013-08-15 16:19:07 -04:00
Terry Jan Reedy
74b3290c10
Issue #18226 : Fix ImportError and subsequent TypeError in 2.7 backport.
...
Running py27\PCbuild> python_d -m test.regrtest -ugui test_idle
ignores the exceptions and gives no indication of a problem (fixed in 3.3).
2013-08-15 15:07:58 -04:00
Terry Jan Reedy
8ce36dd7aa
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
...
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
2013-08-15 14:31:55 -04:00
Terry Jan Reedy
b638a38dc0
Issue #18425 : Add docstrings to IdleHistory.py. Remove redundant 'history_'
...
prefix from two attributes and two methods of History class.
2013-08-13 19:51:04 -04:00
Ezio Melotti
d674927086
#18687 : remove obsolete comment. Patch by Févry Thibault.
2013-08-13 12:53:40 +03:00
Senthil Kumaran
1eeba83867
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
2013-08-12 22:24:43 -07:00
Ezio Melotti
d599142197
#18663 : document that assertAlmostEqual also works when the values are equal and add tests.
2013-08-11 13:04:50 +03:00
Terry Jan Reedy
bb8114cbe6
Issue #18676 : Change 'positive' to 'non-negative' in queue.py put and get
...
docstrings and ValueError messages. Patch by Zhongyue Luo
2013-08-10 18:17:01 -04:00
Terry Jan Reedy
3d35489169
Issue #18226 : Add docstrings and unittests for idlelib/FormatParagraph.py.
...
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:20 -04:00
Ezio Melotti
7921b30be6
#18357 : add tests for dictview set difference. Patch by Fraser Tweedale.
2013-08-08 20:09:19 +03:00
Serhiy Storchaka
e822b034e7
Issue #15866 : The xmlcharrefreplace error handler no more produces two XML
...
entities for a non-BMP character on narrow build.
2013-08-06 16:56:26 +03:00
Terry Jan Reedy
f948943604
Issue #18151 : Replace remaining Idle 'open...close' pairs with 'with open'.
2013-08-04 15:39:56 -04:00
Eli Bendersky
b671701149
Issue #13612 : Fix a buffer overflow in case of a multi-byte encoding.
...
This is a belated backport of f7b47fb30169; Patch by Serhiy Storchaka.
2013-08-04 06:09:49 -07:00
Serhiy Storchaka
06fbac5ea0
Issue #18647 : Temporary disable the "nothing to repeat" check to make buildbots happy.
2013-08-04 13:22:30 +03:00
Serhiy Storchaka
3ade66c203
Issue #17998 : Fix an internal error in regular expression engine.
2013-08-03 19:26:33 +03:00
Charles-François Natali
e8e312142e
Issue #18325 : Fix a test_kqueue failure on OpenBSD: kevent's data and event
...
members are integers.
2013-08-02 10:01:46 +02:00