Commit graph

90006 commits

Author SHA1 Message Date
Larry Hastings
164df4e51a Version bump for Python 3.5.0b4. 2015-07-25 14:22:13 -07:00
Larry Hastings
197ae02f87 Updated pydoc topics for 3.5.0b4. 2015-07-25 14:17:35 -07:00
Berker Peksag
940d69d444 Issue #21697: shutil.copytree() now correctly handles symbolic links that point to directories.
Patch by Eduardo Seabra and Thomas Kluyver.
2015-07-25 14:55:06 +03:00
Berker Peksag
5a294d822b Issue #21697: shutil.copytree() now correctly handles symbolic links that point to directories.
Patch by Eduardo Seabra and Thomas Kluyver.
2015-07-25 14:53:48 +03:00
Berker Peksag
bf1d4b6d7d Issue #24420: Fix documentation regression introduced by f0a00ee094ff.
These functions accept same arguments as subprocess.Popen().

Patch by Martin Panter.
2015-07-25 14:27:07 +03:00
Berker Peksag
00f8197540 Issue #24279: Update test_base64 to use test.support.script_helper.
Initial patch by Christie.
2015-07-25 14:14:24 +03:00
Berker Peksag
a1bddadddd Issue #24713: Use importlib.reload() in import reference document.
imp.reload() was deprecated in Python 3.4 and changed to call
importlib.reload().

Patch by Petr Viktorin.
2015-07-25 13:03:08 +03:00
Berker Peksag
7e732a7181 Issue #24713: Use importlib.reload() in import reference document.
imp.reload() was deprecated in Python 3.4 and changed to call
importlib.reload().

Patch by Petr Viktorin.
2015-07-25 13:02:37 +03:00
Serhiy Storchaka
374164c2f5 Issue #14373: Fixed segmentation fault when gc.collect() is called during
constructing lru_cache (C implementation).
2015-07-25 12:10:21 +03:00
Victor Stinner
389e3d768d Merge 3.4 2015-07-25 02:43:31 +02:00
Victor Stinner
eaf16abc68 asyncio: sync with github
* Fix ResourceWarning warnings in test_streams
* Return True from StreamReader.eof_received() to fix
  http://bugs.python.org/issue24539 (but still needs a unittest).
  Add StreamReader.__repr__() for easy debugging.
* remove unused imports
* Issue #234: Drop JoinableQueue on Python 3.5+
2015-07-25 02:40:40 +02:00
Victor Stinner
71080fc351 asyncio: Add asyncio.compat module
Move compatibility helpers for the different Python versions to a new
asyncio.compat module.
2015-07-25 02:23:21 +02:00
Ned Deily
71f70b8f1a Issue #24603: merge from 3.4 2015-07-24 16:24:47 -07:00
Ned Deily
f05b79dbd2 Issue #24603: Update the OS X 32-bit installer build to use OpenSSL 1.0.2d. 2015-07-24 16:21:18 -07:00
Berker Peksag
c3f417dc47 Issue #24695: Fix a regression in traceback.print_exception()
If exc_traceback is None we shouldn't print a traceback header
like described in the documentation.
2015-07-24 17:36:21 +03:00
Serhiy Storchaka
c19bb3279c Issue #24620: Random.setstate() now validates the value of state last element. 2015-07-24 09:05:59 +03:00
Serhiy Storchaka
178f0b6ddc Issue #24620: Random.setstate() now validates the value of state last element. 2015-07-24 09:02:53 +03:00
Meador Inge
5b718d7f4f Issue #24485: Function source inspection fails on closures.
The fix for Issue #21217 introduced a regression that caused
`inspect.getsource` to return incorrect results on nested
functions.  The root cause of the regression was due to
switching the implementation to analyze the underlying
bytecode instead of the source code.

This commit switches things back to analyzing the source code
in a more complete way.  The original bug and the regression
are both fixed by the new source code analysis.
2015-07-23 22:49:37 -05:00
Robert Collins
7039839895 Add versionchanged information for mock_open. 2015-07-24 04:10:27 +12:00
Robert Collins
f79dfe3f25 Add versionchanged information for mock_open. 2015-07-24 04:09:59 +12:00
Robert Collins
88ba360c88 Issue #21750: Further fixup to be styled like other mock APIs. 2015-07-24 03:48:45 +12:00
Robert Collins
ca647ef60a Issue #21750: Further fixup to be styled like other mock APIs. 2015-07-24 03:48:20 +12:00
Yury Selivanov
4f4913b38b Issue #24485: Revert backwards compatibility breaking changes of #21217. 2015-07-23 17:10:00 +03:00
Yury Selivanov
4887523c03 Issue #24692: Add more tests for types.coroutine 2015-07-23 15:58:37 +03:00
Yury Selivanov
96ec934e75 Issue #24619: Simplify async/await tokenization.
This commit simplifies async/await tokenization in tokenizer.c,
tokenize.py & lib2to3/tokenize.py.  Previous solution was to keep
a stack of async-def & def blocks, whereas the new approach is just
to remember position of the outermost async-def block.

This change won't bring any parsing performance improvements, but
it makes the code much easier to read and validate.
2015-07-23 15:01:58 +03:00
Yury Selivanov
f315c1c016 Issue #24687: Plug refleak on SyntaxError in function parameters annotations. 2015-07-23 09:10:44 +03:00
Yury Selivanov
2f07a66ded Issue #24688: ast.get_docstring() for 'async def' functions. 2015-07-23 08:54:35 +03:00
Robert Collins
943ddac142 Remove line numbers from unittest in susp-ignored. 2015-07-23 08:08:59 +12:00
Robert Collins
80e4f30e64 Remove line numbers from unittest in susp-ignored. 2015-07-23 08:08:38 +12:00
Robert Collins
6cd5635333 Merge unittest docs suspicious fix. 2015-07-23 07:32:27 +12:00
Robert Collins
16dd210543 Fix suspicious after the unittest docs change. 2015-07-23 07:07:07 +12:00
Robert Collins
38de40db00 Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero. 2015-07-23 06:39:06 +12:00
Robert Collins
e02f6c20ff Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero. 2015-07-23 06:37:26 +12:00
Berker Peksag
b5754321d0 Issue #23440: Improve http.server.SimpleHTTPRequestHandler tests
* Tests that index.html is served, rather than an automatic directory listing
* Tests that there is no extra data sent after the response

Patch by Martin Panter.
2015-07-22 19:25:37 +03:00
Yury Selivanov
b7666a3093 Issue #24619: More tests; fix nits in compiler.c 2015-07-22 14:48:57 +03:00
Yury Selivanov
8fb307cd65 Issue #24619: New approach for tokenizing async/await.
This commit fixes how one-line async-defs and defs are tracked
by tokenizer.  It allows to correctly parse invalid code such
as:

>>> async def f():
...     def g(): pass
...     async = 10

and valid code such as:

>>> async def f():
...     async def g(): pass
...     await z

As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:

>>> async def foo(): return await bar()
2015-07-22 13:33:45 +03:00
Zachary Ware
80acc3ebbc Issue #24603: Update the Windows build to use OpenSSL 1.0.2d 2015-07-21 23:27:08 -05:00
Zachary Ware
689b55c1cb Issue #24603: Update the Windows build to use OpenSSL 1.0.2d 2015-07-21 23:20:47 -05:00
Zachary Ware
d7841ef48b Merge with 3.4 2015-07-21 22:50:43 -05:00
Zachary Ware
4aa30dc275 rstlint: explicitly open files as UTF8 2015-07-21 22:50:29 -05:00
Zachary Ware
c8115b8ba5 Issue #24680: Merge with 3.4 2015-07-21 22:34:16 -05:00
Zachary Ware
c75e2dd4c6 Issue #24680: Remove random backslash. Patch by cdz. 2015-07-21 22:33:16 -05:00
Serhiy Storchaka
296b347db7 Issue #24678: Fixed raiseExceptions typo in logging tests.
Patch by Jacek Kołodziej.
2015-07-21 22:40:18 +03:00
Serhiy Storchaka
750eae1bd4 Issue #24678: Fixed raiseExceptions typo in logging tests.
Patch by Jacek Kołodziej.
2015-07-21 22:39:26 +03:00
Yury Selivanov
e4e811d65b Issue #24669: Fix inspect.getsource() for 'async def' functions.
Patch by Kai Groner.
2015-07-21 19:01:52 +03:00
Berker Peksag
036a71bf25 Use setUpClass and tearDownClass correctly in test_os.
According to the documentation, they must be decorated as classmethods.
2015-07-21 09:29:48 +03:00
Steve Dower
e1f6805776 Fixes argument handling in build.bat and HHC search 2015-07-20 21:34:45 -07:00
Steve Dower
c79dbc7941 Updates get_wix.py for newer version of WiX. 2015-07-20 19:52:15 -07:00
Terry Jan Reedy
fd580cbd17 Merge with 3.4 2015-07-20 17:45:22 -04:00
Terry Jan Reedy
19c1a8725c Issue #20792: Expand idle_test.test_pathbowser. Tweak file to not copy twice.
Original patch by Saimadhav Heblikar.
2015-07-20 17:44:59 -04:00