Commit graph

34950 commits

Author SHA1 Message Date
R David Murray
554bcbf1b9 #19662: add decode_data to smtpd so you can get at DATA in bytes form.
Otherwise smtpd is restricted to 7bit clean data, since even if the
incoming data is actually utf-8, it will often break things to decode
it before parsing the message.

Patch by Maciej Szulik, with some adjustments (mostly the warning
support).
2014-06-11 11:18:08 -04:00
Vinay Sajip
99537627fd Closes #21709: Merged fix from 3.4. 2014-06-11 08:04:16 +01:00
Vinay Sajip
80f2262dcf Issue #21709: Remove references to __file__ when part of a frozen application. 2014-06-11 08:01:32 +01:00
Giampaolo Rodola'
915d14190e fix issue #17552: add socket.sendfile() method allowing to send a file over a socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'· 2014-06-11 03:54:30 +02:00
Serhiy Storchaka
b398d33c65 Issue #18039: dbm.dump.open() now always creates a new database when the
flag has the value 'n'.  Patch by Claudiu Popa.
2014-06-10 21:16:00 +03:00
Victor Stinner
791e5531c9 (Merge 3.4) Issue #21596: asyncio.wait(): mention that the sequence of futures
must not be empty.
2014-06-10 11:16:18 +02:00
Victor Stinner
db74d982d4 Issue #21596: asyncio.wait(): mention that the sequence of futures must not
be empty.
2014-06-10 11:16:05 +02:00
Victor Stinner
bb2fc5b2a5 Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop
Add BaseEventLoop._closed attribute and use it to check if the event loop was
closed or not, instead of checking different attributes in each subclass of
BaseEventLoop.

run_forever() and run_until_complete() methods now raise a RuntimeError('Event loop is
closed') exception if the event loop was closed.

BaseProactorEventLoop.close() now also cancels "accept futures".
2014-06-10 10:23:10 +02:00
Terry Jan Reedy
eb5ba067c9 Merge with 3.4 2014-06-10 02:49:54 -04:00
Terry Jan Reedy
4762382d63 Issue #21695: Catch AttributeError created when user closes grep output window
while still being written to. With no console, this closed Idle.
Also add missing import and a few other changes.
2014-06-10 02:49:35 -04:00
Serhiy Storchaka
3a56117a60 Issue #21310: Fixed possible resource leak in failed open(). 2014-06-09 13:35:43 +03:00
Serhiy Storchaka
f10063e3c3 Issue #21310: Fixed possible resource leak in failed open(). 2014-06-09 13:32:34 +03:00
Kushal Das
047f14c3c6 Closes #21256: Printout of keyword args in deterministic order in mock calls.
Printout of keyword args should be in deterministic order in
a mock function call. This will help to write better doctests.
2014-06-09 13:45:56 +05:30
Serhiy Storchaka
85e4235c0e Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. 2014-06-09 09:15:42 +03:00
Serhiy Storchaka
8a8f7f9830 Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. 2014-06-09 09:13:04 +03:00
Victor Stinner
350985da89 Issue #21515: Fix typo in a comment, thanks Arfrever for the report 2014-06-09 00:05:47 +02:00
Terry Jan Reedy
564562faab Merge with 3.4 whitespace 2014-06-08 14:57:42 -04:00
Terry Jan Reedy
c6a66ccb06 whitespace 2014-06-08 14:57:24 -04:00
Terry Jan Reedy
6d4f8f0fea Merge heads. 2014-06-08 14:49:07 -04:00
Terry Jan Reedy
ba229d9597 Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar. (2 head merge)
2014-06-08 14:47:26 -04:00
Benjamin Peterson
4fb01ffe66 backout 0fb7789b5eeb for test breakage (#20578) 2014-06-07 23:18:12 -07:00
Benjamin Peterson
eac219436c merge 3.4 (#11709) 2014-06-07 20:17:29 -07:00
Benjamin Peterson
159824ea2a make sure the builtin help function doesn't fail when sys.stdin is not a valid file (closes #11709)
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson
10e847bbc7 add BufferedIOBase.readinto1 (closes #20578)
Patch by Nikolaus Rath.
2014-06-07 20:06:48 -07:00
Benjamin Peterson
9d19da701d merge 3.4 (#13223) 2014-06-07 16:47:15 -07:00
Benjamin Peterson
ed1160b39c don't remove self from example code in the HTML output (closes #13223)
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Benjamin Peterson
edb07d28fb merge 3.4 (#21463) 2014-06-07 15:09:36 -07:00
Benjamin Peterson
3c2dca67ac in ftp cache pruning, avoid changing the size of a dict while iterating over it (closes #21463)
Patch by Skyler Leigh Amador.
2014-06-07 15:08:04 -07:00
Benjamin Peterson
3e439797ba merge 3.4 (#21642) 2014-06-07 12:39:51 -07:00
Benjamin Peterson
c416162302 allow the keyword else immediately after (no space) an integer (closes #21642) 2014-06-07 12:36:39 -07:00
Terry Jan Reedy
7244d775db Merge with 3.4 2014-06-07 04:28:16 -04:00
Terry Jan Reedy
38ebdf528e Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar.
2014-06-07 04:27:50 -04:00
Terry Jan Reedy
f2d9526391 Merge with 3.4 2014-06-06 17:43:37 -04:00
Terry Jan Reedy
4a3f135c8d Issue #18910: test_textView - since all tests require 'gui', make root global.
Subclass TextViewer to add mock methods instead of monkey-patching it.
2014-06-06 17:43:19 -04:00
Victor Stinner
d967fc9da2 Issue #21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is available 2014-06-05 14:27:45 +02:00
Victor Stinner
7088b99eb8 (Merge 3.4) Tulip issue 83, Python issue #21252: Fill some XXX docstrings in asyncio 2014-06-05 12:07:14 +02:00
Victor Stinner
f9e49dd346 Tulip issue 83, Python issue #21252: Fill some XXX docstrings in asyncio 2014-06-05 12:06:44 +02:00
Vinay Sajip
ae0767bb5b Closes #21663: Merged fix from 3.4. 2014-06-05 09:32:24 +01:00
Vinay Sajip
1a170a74f7 Issue #21663: Fixed error caused by trying to create an existing directory. 2014-06-05 09:31:20 +01:00
Terry Jan Reedy
cbd619bd6a Merge with 3.4 2014-06-05 03:54:21 -04:00
Terry Jan Reedy
7be121f2bc whitespace 2014-06-05 03:54:02 -04:00
Terry Jan Reedy
7497ec0fd0 Merge heads from 3.4. 2014-06-05 03:45:08 -04:00
Terry Jan Reedy
537e2c8632 Issue #18910: Add unittest for textView. Patch by Phil Webster. 2014-06-05 03:38:34 -04:00
Terry Jan Reedy
be856e9a21 Merge heads. 2014-06-04 21:02:48 -04:00
Terry Jan Reedy
0d3e4b4e1a Merge heads. 2014-06-04 21:01:08 -04:00
Terry Jan Reedy
13f4aba10b merge from 3.4 2014-06-04 20:54:43 -04:00
Terry Jan Reedy
7936e6f755 Issue #18292: Idle - test AutoExpand. Patch by Saihadhav Heblikar. 2014-06-04 20:50:59 -04:00
Guido van Rossum
2aebd4a816 Replace deprecated time.clock() with time.time(). Fixes issue #20475. 2014-06-04 11:45:05 -07:00
Barry Warsaw
9661efe6a7 Don't chmod() if path is a symlink. 2014-06-04 14:13:13 -04:00
Barry Warsaw
adaddde369 Don't chmod() if path is a symlink. 2014-06-04 14:11:46 -04:00