Commit graph

94824 commits

Author SHA1 Message Date
Berker Peksag
16ea19fc66 Issue #25651: Allow falsy values to be used for msg parameter of subTest() 2016-09-21 19:34:15 +03:00
Victor Stinner
1ddf53d496 Fix PyUnicode_FromFormatV() error handling
Issue #28233: Fix a memory leak if the format string contains a non-ASCII
character, destroy the unicode writer.
2016-09-21 14:13:14 +02:00
Victor Stinner
0256f42839 test_asynico: fix test_sock_connect_sock_write_race()
Issue #28176: Increase timeout from 10 seconds to 60 seconds.
2016-09-21 09:15:36 +02:00
Victor Stinner
6d8bc46cc0 Catch EPERM error in py_getrandom()
Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.
2016-09-20 22:46:02 +02:00
Victor Stinner
af59732102 Cleanup random.c
Issue #27955: modify py_getrnadom() and dev_urandom()

* Add comments from Python 3.7
* PEP 7 style: add {...}
2016-09-20 22:26:18 +02:00
Ned Deily
a327331cec Make 3.7 the current dev version in the html version of the docs. 2016-09-20 15:00:07 -04:00
Benjamin Peterson
918aa89483 remove trailing whitespace 2016-09-19 22:16:36 -07:00
Jesus Cea
647680ec2c Docs: Correctly link to the methods 2016-09-20 00:01:53 +02:00
Benjamin Peterson
57bda335e1 merge 3.4 2016-09-18 23:43:18 -07:00
Benjamin Peterson
26d998cfdd properly handle the single null-byte file (closes #24022) 2016-09-18 23:41:11 -07:00
Raymond Hettinger
7eb1becc25 Issue #28189: dictitems_contains no longer swallows compare errors.
(Patch by Xiang Zhang)
2016-09-18 21:45:11 -07:00
Christian Heimes
96b2dd5997 Issue #26661: setup.py now detects system libffi with multiarch wrapper. 2016-09-18 14:33:30 +02:00
Berker Peksag
5a5ae745ff Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana 2016-09-18 14:52:25 +03:00
Berker Peksag
bf3c1c3235 Issue #28075: Fix test_access_denied in Python 3.5
I forgot there two variations of os.stat() in Python 3.5.
2016-09-18 13:56:29 +03:00
Steve Dower
17a564ecc9 Add file missed from backport 2016-09-17 17:29:37 -07:00
Steve Dower
1ec262be80 Issue #27932: Prevent memory leak in win32_ver(). 2016-09-17 17:25:42 -07:00
Steve Dower
1c75c18ed2 Issue #28110: launcher.msi has different product codes between 32-bit and 64-bit 2016-09-17 16:12:55 -07:00
Berker Peksag
bdcc8f9d1b Issue #28176: Increase timeout for test_sock_connect_sock_write_race 2016-09-18 01:06:50 +03:00
Berker Peksag
bcfb35f80d Issue #26384: Fix UnboundLocalError in socket._sendfile_use_sendfile 2016-09-17 23:22:06 +03:00
Berker Peksag
9a1c91a10d Fix test_access_denied in 3.5 2016-09-17 16:20:55 +03:00
Berker Peksag
0b4dc4846b Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat()
Patch by Eryk Sun.
2016-09-17 15:49:59 +03:00
Martin Panter
6d57fe1c23 Issue #28139: Fix messed up indentation
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
2016-09-17 03:26:16 +00:00
Berker Peksag
4a72a7b6c4 Issue #25270: Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed 2016-09-16 17:31:06 +03:00
Christian Heimes
a4961e555b Issue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam. 2016-09-16 13:48:10 +02:00
Berker Peksag
f676748a05 Issue #25895: Enable WebSocket URL schemes in urllib.parse.urljoin
Patch by Gergely Imreh and Markus Holtermann.
2016-09-16 14:43:58 +03:00
Martin Panter
2dc77f0e19 Issue #28145: Spelling fixes 2016-09-16 00:46:05 +00:00
Yury Selivanov
525aedc5fa Issue #27759: Fix selectors incorrectly retain invalid file descriptors.
Patch by Mark Williams.
2016-09-15 19:30:42 -04:00
Yury Selivanov
d6c6771fc9 Issue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect. 2016-09-15 17:56:36 -04:00
Yury Selivanov
4c5bf3bc52 Issue #26909: Fix slow pipes IO in asyncio.
Patch by INADA Naoki.
2016-09-15 16:51:48 -04:00
Yury Selivanov
45dccdad93 Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__.
Patch by iceboy.
2016-09-15 15:58:15 -04:00
Yury Selivanov
5587d7c071 Issue #28174: Handle when SO_REUSEPORT isn't properly supported (asyncio)
Patch by Seth Michael Larson.
2016-09-15 15:45:07 -04:00
Yury Selivanov
a1b0e7db73 Issue #27906: Fix socket accept exhaustion during high TCP traffic.
Patch by Kevin Conway.
2016-09-15 14:13:15 -04:00
Yury Selivanov
4357cf6202 Another asyncio sync. 2016-09-15 13:49:08 -04:00
Yury Selivanov
f6d991d885 asyncio: Sync with the upstream 2016-09-15 13:10:51 -04:00
Serhiy Storchaka
e6265e92bf Issue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). 2016-09-14 16:34:37 +03:00
Christian Heimes
7ce201322e Restrict name_length to NAME_MAXLEN in unicodedata_UCD_lookup() 2016-09-14 10:25:46 +02:00
Benjamin Peterson
1f28a4749b merge heads 2016-09-13 22:46:37 -07:00
Benjamin Peterson
59e5e0dca2 improve type-safe of and prevent double-frees in get_locale_info (#28119) 2016-09-13 22:43:45 -07:00
Berker Peksag
e907885932 Issue #26171: Null merge 2016-09-14 08:39:15 +03:00
Berker Peksag
354c2f90a1 Issue #26171: Null merge 2016-09-14 08:38:36 +03:00
Berker Peksag
d751040b1a Issue #26171: Prevent buffer overflow in get_data
Backport of 01ddd608b85c.
2016-09-14 08:37:28 +03:00
Berker Peksag
4aa74c429c Issue #28131: Fix a regression in zipimport's compile_source()
zipimport should use the same optimization level as the interpreter.
2016-09-14 08:09:48 +03:00
Martin Panter
134192630a Issue #15819: Remove old unconditional -IInclude option
A newer instance of this option, enabled in the configure script when
building outside the source tree, made this redundant.
2016-09-13 12:21:47 +00:00
Raymond Hettinger
a33e9f7047 Issue #28104: More accurately document set method signatures 2016-09-12 23:38:50 -07:00
Benjamin Peterson
529d130eda merge heads 2016-09-12 22:09:11 -07:00
Benjamin Peterson
35ee948fa5 restructure fp_setreadl so as to avoid refleaks (closes #27981) 2016-09-12 22:06:58 -07:00
Berker Peksag
ac2d1c7153 Issue #27952: Capture stderr in run_script() 2016-09-13 07:55:54 +03:00
Berker Peksag
720acbf31b Issue #27981: Fix refleak in fp_setreadl()
Patch by David Dudson.
2016-09-13 07:39:00 +03:00
Berker Peksag
7927e75758 Issue #28103: Use `'...'` style in zipfile documentation
Patch by Stephen J. Turnbull.
2016-09-13 04:49:12 +03:00
Raymond Hettinger
076366c2a5 Issue #17582: xml.etree.ElementTree nows preserves whitespaces in attributes
(Patch by Duane Griffin.  Reviewed and approved by Stefan Behnel.)
2016-09-11 23:18:03 -07:00