]> granicus.if.org Git - python/log
python
7 years agobpo-6519: Improve Python Input Output Tutorial (GH-2143)
Andrew Kuchling [Tue, 13 Jun 2017 05:31:01 +0000 (01:31 -0400)]
bpo-6519: Improve Python Input Output Tutorial (GH-2143)

Move up the discussion about 'with' keyword, so it appears earlier in the document.

7 years agobpo-30636: Fix the indentation for the help (#2131)
Stéphane Wirtel [Tue, 13 Jun 2017 01:31:11 +0000 (03:31 +0200)]
bpo-30636: Fix the indentation for the help (#2131)

7 years agobpo-30177: add NEWS entry (#2135)
Antoine Pietri [Mon, 12 Jun 2017 16:40:13 +0000 (18:40 +0200)]
bpo-30177: add NEWS entry (#2135)

7 years agoFix bpo-30589: improve Process.exitcode with forkserver (#1989)
Antoine Pitrou [Mon, 12 Jun 2017 13:28:19 +0000 (15:28 +0200)]
Fix bpo-30589: improve Process.exitcode with forkserver (#1989)

* Fix bpo-30589: improve Process.exitcode with forkserver

When the child is killed, Process.exitcode should return -signum, not 255.

* Add Misc/NEWS

7 years agobpo-30624 remaining bare except (#2108)
Giampaolo Rodola [Mon, 12 Jun 2017 12:43:40 +0000 (14:43 +0200)]
bpo-30624 remaining bare except (#2108)

bpo-30624 / selectors: use bare 'except' clause instead of 'except
Exception'

7 years agobpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)
Stéphane Wirtel [Mon, 12 Jun 2017 11:30:33 +0000 (13:30 +0200)]
bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)

7 years ago[email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595)
mircea-cosbuc [Mon, 12 Jun 2017 06:43:41 +0000 (08:43 +0200)]
[email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595)

If max_line_length=None is specified while using the Compat32 policy,
it is no longer ignored.

7 years agobpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (#2034)
Serhiy Storchaka [Mon, 12 Jun 2017 05:25:04 +0000 (08:25 +0300)]
bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (#2034)

The traceback no longer displayed for SystemExit raised in a callback registered by atexit.

7 years agobpo-30621: Update Input Output Tutorial Example(GH-2074)
suketa [Mon, 12 Jun 2017 01:42:59 +0000 (10:42 +0900)]
bpo-30621: Update Input Output Tutorial Example(GH-2074)

 import json before using json module

7 years agoRevert "bpo-29406: asyncio SSL contexts leak sockets after calling close with certain...
Yury Selivanov [Sun, 11 Jun 2017 14:46:35 +0000 (16:46 +0200)]
Revert "bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409)" (#2111)

This reverts commit a608d2d5a7f1aabe9bcbfc220135c5e126189390.

7 years agobpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050)
Yury Selivanov [Sun, 11 Jun 2017 13:49:18 +0000 (13:49 +0000)]
bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050)

7 years agobpo-30501: Make the compiler producing optimized code for condition expressions....
Serhiy Storchaka [Sun, 11 Jun 2017 11:50:22 +0000 (14:50 +0300)]
bpo-30501: Make the compiler producing optimized code for condition expressions. (#1851)

7 years agobpo-11822: Improve disassembly to show embedded code objects. (#1844)
Serhiy Storchaka [Sun, 11 Jun 2017 11:09:39 +0000 (14:09 +0300)]
bpo-11822: Improve disassembly to show embedded code objects. (#1844)

The depth argument limits recursion.

7 years agoremove extra word (#2101)
Benjamin Peterson [Sun, 11 Jun 2017 07:24:38 +0000 (00:24 -0700)]
remove extra word (#2101)

7 years agoclarify recv() and send() on SSLObject (#2100)
Benjamin Peterson [Sun, 11 Jun 2017 07:15:14 +0000 (00:15 -0700)]
clarify recv() and send() on SSLObject (#2100)

SSLObject has recv() and send(), but they don't do any network io.

7 years agoShow what's changed when Travis fails regen check (GH-2095)
Zachary Ware [Sun, 11 Jun 2017 04:04:36 +0000 (23:04 -0500)]
Show what's changed when Travis fails regen check (GH-2095)

Also fixed a few more line endings that were missed in GH-840, which were causing failure.

7 years agobpo-28180: Implementation for PEP 538 (#659)
Nick Coghlan [Sun, 11 Jun 2017 03:16:15 +0000 (13:16 +1000)]
bpo-28180: Implementation for PEP 538 (#659)

- new PYTHONCOERCECLOCALE config setting
- coerces legacy C locale to C.UTF-8, C.utf8 or UTF-8 by default
- always uses C.UTF-8 on Android
- uses `surrogateescape` on stdin and stdout in the coercion
  target locales
- configure option to disable locale coercion at build time
- configure option to disable C locale warning at build time

7 years agoUse Travis to make sure all generated files are up to date (GH-2080)
Zachary Ware [Sun, 11 Jun 2017 02:37:40 +0000 (21:37 -0500)]
Use Travis to make sure all generated files are up to date (GH-2080)

7 years agoUpdate idlelib NEWS for 3.7 (#2089)
terryjreedy [Sun, 11 Jun 2017 00:46:08 +0000 (20:46 -0400)]
Update idlelib NEWS for 3.7 (#2089)

7 years agoAdd IDLE NEWS items for 3.7 (#2090)
terryjreedy [Sun, 11 Jun 2017 00:34:38 +0000 (20:34 -0400)]
Add IDLE NEWS items for 3.7 (#2090)

7 years ago#30624 / selectors: use bare except clause in order to not leave the fd in a bad...
Giampaolo Rodola [Sat, 10 Jun 2017 23:51:52 +0000 (01:51 +0200)]
#30624 / selectors: use bare except clause in order to not leave the fd in a bad state in case of error (#2082)

7 years agobpo-27425: Be more explicit in .gitattributes (GH-840)
Zachary Ware [Sat, 10 Jun 2017 19:58:42 +0000 (14:58 -0500)]
bpo-27425: Be more explicit in .gitattributes (GH-840)

Updates checked-in line endings on several files.

7 years agobpo-28556: Updates to typing module (#2076)
Ivan Levkivskyi [Sat, 10 Jun 2017 19:57:56 +0000 (21:57 +0200)]
bpo-28556: Updates to typing module (#2076)

This PR contains two updates to typing module:

- Support ContextManager on all versions (original PR by Jelle Zijlstra).
- Add generic AsyncContextManager.

7 years agobpo-30312: Small correction in datastructures set code sample (GH-2081)
KatherineMichel [Sat, 10 Jun 2017 19:19:09 +0000 (14:19 -0500)]
bpo-30312: Small correction in datastructures set code sample (GH-2081)

7 years agobpo-30599: Fix test_threaded_import reference leak (#2029)
Victor Stinner [Sat, 10 Jun 2017 17:41:24 +0000 (19:41 +0200)]
bpo-30599: Fix test_threaded_import reference leak (#2029)

Mock os.register_at_fork() when importing the random module, since
this function doesn't allow to unregister callbacks and so leaked
memory.

7 years agobpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027)
Victor Stinner [Sat, 10 Jun 2017 11:10:13 +0000 (13:10 +0200)]
bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027)

multiprocessing.Queue.get() with a timeout now polls its reader in
non-blocking mode if it succeeded to aquire the lock but the acquire
took longer than the timeout.

Co-Authored-By: Grzegorz Grzywacz <grzgrzgrz3@gmail.com>
7 years agoRegenerate Argument Clinic code for bpo-19180. (#2073)
Serhiy Storchaka [Sat, 10 Jun 2017 10:13:51 +0000 (13:13 +0300)]
Regenerate Argument Clinic code for bpo-19180. (#2073)

7 years agobpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (#2016)
Roy Williams [Sat, 10 Jun 2017 05:01:16 +0000 (22:01 -0700)]
bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (#2016)

Running our unit tests with `-bb` enabled triggered this failure.

7 years agobpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)
Sylvain [Sat, 10 Jun 2017 04:51:48 +0000 (06:51 +0200)]
bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)

The function '_PyArg_ParseStack()' and
'_PyArg_UnpackStack' were failing (with error
"XXX() takes Y argument (Z given)") before
the function '_PyArg_NoStackKeywords()' was called.
Thus, the latter did not raise its more meaningful
error : "XXX() takes no keyword arguments".

7 years agobpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535)
csabella [Sat, 10 Jun 2017 04:42:11 +0000 (00:42 -0400)]
bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535)

Mention that fnmatchcase does not call normcase, and fnmatch does.

7 years agobpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers...
Nikolay Kim [Sat, 10 Jun 2017 04:04:39 +0000 (21:04 -0700)]
bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409)

* asyncio SSL contexts leak sockets after calling close with certain servers

* cleanup _shutdown_timeout_handle on _fatal_error

7 years agoFix TypeError is asyncio/proactor_events (#993)
Jim Fasarakis-Hilliard [Sat, 10 Jun 2017 02:56:34 +0000 (05:56 +0300)]
Fix TypeError is asyncio/proactor_events (#993)

7 years agobpo-30417: Disable `cpu` resource on AppVeyor (GH-1951)
Zachary Ware [Sat, 10 Jun 2017 01:20:24 +0000 (20:20 -0500)]
bpo-30417: Disable `cpu` resource on AppVeyor (GH-1951)

7 years agoMake codecov config on master the only config used (GH-2041)
Brett Cannon [Fri, 9 Jun 2017 23:26:03 +0000 (16:26 -0700)]
Make codecov config on master the only config used (GH-2041)

This will allow for centralized management of the Codecov config to prevent skew as well as easier management going forward.

Closes python/core-workflow#81.

7 years agoAdd a NEWS entry for #29870 (PR #981) (#2047)
Yury Selivanov [Fri, 9 Jun 2017 22:38:30 +0000 (18:38 -0400)]
Add a NEWS entry for #29870 (PR #981) (#2047)

7 years agoBreak circular references when closing SSLTransport objects (#981)
Michaël Sghaïer [Fri, 9 Jun 2017 22:29:46 +0000 (18:29 -0400)]
Break circular references when closing SSLTransport objects (#981)

7 years agoClosing transport during handshake process leaks socket (#480)
Nikolay Kim [Fri, 9 Jun 2017 21:46:14 +0000 (14:46 -0700)]
Closing transport during handshake process leaks socket (#480)

7 years agoClarify what --enable-optimizations does (GH-1847)
Brett Cannon [Fri, 9 Jun 2017 20:56:57 +0000 (13:56 -0700)]
Clarify what --enable-optimizations does (GH-1847)

7 years agobpo-27585: Add a NEWS entry for #1031 (#2036)
Yury Selivanov [Fri, 9 Jun 2017 20:34:29 +0000 (16:34 -0400)]
bpo-27585: Add a NEWS entry for #1031 (#2036)

7 years agobpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536)
Jim Fasarakis-Hilliard [Fri, 9 Jun 2017 20:27:20 +0000 (23:27 +0300)]
bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536)

Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.

7 years agobpo-30014: make poll-like selector's modify() method faster (#1030)
Giampaolo Rodola [Fri, 9 Jun 2017 20:20:41 +0000 (22:20 +0200)]
bpo-30014: make poll-like selector's modify() method faster (#1030)

* #30014: make selectors.DefaultSelector.modify() faster by relying on selector's modify() method instead of un/register()ing the fd

* #30014: add unit test

* speedup poll/epoll/devpoll modify() method by using internal modify() call

* update doc

* address PR comments

* update NEWS entries

* use != instead of 'is not'

7 years agoFix waiter cancellation in asyncio.Lock (#1031)
Mathieu Sornay [Fri, 9 Jun 2017 20:17:40 +0000 (22:17 +0200)]
Fix waiter cancellation in asyncio.Lock (#1031)

Avoid a deadlock when the waiter who is about to take the lock is
cancelled

Issue #27585

7 years agoFix regression in error message introduced in bpo-29951. (#2028)
Serhiy Storchaka [Fri, 9 Jun 2017 16:27:06 +0000 (19:27 +0300)]
Fix regression in error message introduced in bpo-29951. (#2028)

* Fix regression in error message introduced in bpo-29951.

* Add test.

* Make the test more strong.

7 years agobpo-30266: support "= None" pattern in AbstractContextManager (#1448)
Jelle Zijlstra [Fri, 9 Jun 2017 15:21:47 +0000 (08:21 -0700)]
bpo-30266: support "= None" pattern in AbstractContextManager (#1448)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958.

7 years agobpo-30524: Write unit tests for FASTCALL (#2022)
Victor Stinner [Fri, 9 Jun 2017 14:48:45 +0000 (16:48 +0200)]
bpo-30524: Write unit tests for FASTCALL (#2022)

Test C functions:

* _PyObject_FastCall()
* _PyObject_FastCallDict()
* _PyObject_FastCallKeywords()

7 years agobpo-30217: Add the operators ~ and | to the index (#1502)
Marco Buttu [Fri, 9 Jun 2017 14:28:28 +0000 (16:28 +0200)]
bpo-30217: Add the operators ~ and | to the index (#1502)

7 years agobpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 (GH-148)
Chandan Kumar [Fri, 9 Jun 2017 09:43:58 +0000 (15:13 +0530)]
bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 (GH-148)

* RFC 1750 has been been obsoleted by RFC 4086.
* RFC 3280 has been obsoleted by RFC 5280.
* RFC 4366 has been obsoleted by RFC 6066.

7 years agoAdd a test for bad IDNA in ssl server_hostname (#1997)
Nathaniel J. Smith [Fri, 9 Jun 2017 09:35:16 +0000 (02:35 -0700)]
Add a test for bad IDNA in ssl server_hostname (#1997)

See discussion:
  https://github.com/python/cpython/pull/1992#issuecomment-307024778

7 years agobpo-30540: regrtest: add --matchfile option (#1909)
Victor Stinner [Fri, 9 Jun 2017 08:18:48 +0000 (10:18 +0200)]
bpo-30540: regrtest: add --matchfile option (#1909)

* Add a new option taking a filename to get a list of test names to
  filter tests.
* support.match_tests becomes a list.
* Modify run_unittest() to accept to match the whole test identifier,
  not just a part of a test identifier.

For example, the following command only runs test_default_timeout()
of the BarrierTests class of test_threading:

$ ./python -m test -v test_threading -m test.test_threading.BarrierTests.test_default_timeout

Remove also some empty lines from test_regrtest.py to make flake8
tool happy.

7 years agobpo-24755: Document asyncio.wrap_future (GH-603)
adisbladis [Fri, 9 Jun 2017 06:28:59 +0000 (14:28 +0800)]
bpo-24755: Document asyncio.wrap_future (GH-603)

7 years agobpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (#1888)
Serhiy Storchaka [Thu, 8 Jun 2017 20:43:54 +0000 (23:43 +0300)]
bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (#1888)

'invalid character in identifier' now is raised instead of
'f-string: empty expression not allowed' if a subexpression contains
only whitespaces and they are not accepted by Python parser.

7 years agobpo-30601: Fix a refleak in WindowsConsoleIO (#2003)
Victor Stinner [Thu, 8 Jun 2017 16:19:25 +0000 (18:19 +0200)]
bpo-30601: Fix a refleak in WindowsConsoleIO (#2003)

Fix a reference leak in _io._WindowsConsoleIO: PyUnicode_FSDecoder()
always initialize decodedname when it succeed and it doesn't clear
input decodedname object.

7 years agobpo-30418: Popen.communicate() always ignore EINVAL (#2002)
Victor Stinner [Thu, 8 Jun 2017 15:30:39 +0000 (17:30 +0200)]
bpo-30418: Popen.communicate() always ignore EINVAL (#2002)

On Windows, subprocess.Popen.communicate() now also ignore EINVAL
on stdin.write() if the child process is still running but closed the
pipe.

7 years agobpo-30486: Allow setting cell value (#1840)
Lisa Roach [Thu, 8 Jun 2017 11:43:26 +0000 (04:43 -0700)]
bpo-30486: Allow setting cell value (#1840)

The cell_contents attribute of the cell object is now writable.

7 years agobpo-30592: Fixed error messages for some builtins. (#1996)
Serhiy Storchaka [Thu, 8 Jun 2017 11:41:19 +0000 (14:41 +0300)]
bpo-30592: Fixed error messages for some builtins. (#1996)

Error messages when pass keyword arguments to some builtins that
don't support keyword arguments contained double parenthesis: "()()".
The regression was introduced by bpo-30534.

7 years agobpo-30598: _PySys_EndInit() now duplicates warnoptions (#1998)
Victor Stinner [Thu, 8 Jun 2017 11:27:47 +0000 (13:27 +0200)]
bpo-30598: _PySys_EndInit() now duplicates warnoptions (#1998)

Fix a reference in subinterpreters, like test_callbacks_leak() of
test_atexit.

warnoptions is a list used to pass options from the command line to
the sys module constructor. Before this change, the list was shared
by multiple interpreter which is not the expected behaviour. Each
interpreter should have their own independent mutable world.

This change duplicates the list in each interpreter. So each
interpreter owns its own list, so each interpreter can clear its own
list.

7 years agobpo-30547: Fix multiple reference leaks (#1995)
Stéphane Wirtel [Thu, 8 Jun 2017 11:13:20 +0000 (13:13 +0200)]
bpo-30547: Fix multiple reference leaks (#1995)

Fix regressions introduced by:

- bpo-22257: commits 1abcf6700b4da6207fe859de40c6c1bada6b4fec and 6b4be195cd8868b76eb6fbe166acc39beee8ce36

Co-Authored-By: Victor Stinner <victor.stinner@gmail.com>
Co-Authored-By: Louie Lu <git@louie.lu>
7 years agobpo-30594: Fixed refcounting in newPySSLSocket (#1992)
Nathaniel J. Smith [Thu, 8 Jun 2017 06:30:43 +0000 (23:30 -0700)]
bpo-30594: Fixed refcounting in newPySSLSocket (#1992)

If pass a server_hostname= that fails IDNA decoding to SSLContext.wrap_socket or SSLContext.wrap_bio, then the SSLContext object had a spurious Py_DECREF called on it, eventually leading to segfaults.

7 years agobpo-30537: use PyNumber in itertools.islice instead of PyLong (#1918)
Will Roberts [Thu, 8 Jun 2017 06:03:04 +0000 (08:03 +0200)]
bpo-30537: use PyNumber in itertools.islice instead of PyLong (#1918)

* bpo-30537: use PyNumber in itertools instead of PyLong

* bpo-30537: revert changes except to islice_new

* bpo-30537: test itertools.islice and add entry to Misc/NEWS

7 years agobpo-30591: Added test for textwrap backtracking. (#1988)
Jonathan Eunice [Wed, 7 Jun 2017 20:49:13 +0000 (16:49 -0400)]
bpo-30591: Added test for textwrap backtracking. (#1988)

7 years agotrivial: update config.{guess,sub} from gnu.org. (GH-1987)
Matthias Klose [Wed, 7 Jun 2017 18:20:19 +0000 (20:20 +0200)]
trivial: update config.{guess,sub} from gnu.org. (GH-1987)

* Update config.{guess,sub} from gnu.org.

7 years agobpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559)
Erik Bray [Wed, 7 Jun 2017 17:42:24 +0000 (18:42 +0100)]
bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559)

7 years agobpo-30584: Fix test_os fails on non-English Windows (#1980)
Denis Osipov [Wed, 7 Jun 2017 17:15:26 +0000 (22:15 +0500)]
bpo-30584: Fix test_os fails on non-English Windows (#1980)

* Fix bpo-30584

* Adding a comment mentionning the bpo and explaining what is the identifier

* Add Denis Osipov to Misc/ACKS

7 years agobpo-30177: pathlib: include the full path in resolve(strict=False) (#1893)
Antoine Pietri [Wed, 7 Jun 2017 15:29:17 +0000 (17:29 +0200)]
bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893)

7 years agobpo-30463: Add an empty __slots__ to abc.ABC.
Aaron Hall, MBA [Tue, 6 Jun 2017 19:34:57 +0000 (15:34 -0400)]
bpo-30463: Add an empty __slots__ to abc.ABC.

7 years agobpo-29596: Improve clinic howto documentation (GH-1710)
gfyoung [Tue, 6 Jun 2017 19:23:52 +0000 (15:23 -0400)]
bpo-29596: Improve clinic howto documentation (GH-1710)

Clarify that `two-pass` buffer can only be dumped once, and it prints out all text sent to it during all processing, even from Clinic blocks *after* the dumping point.

7 years agobpo-30583: Fix typo in datetime dateutil documentation (GH-1972)
wim glenn [Tue, 6 Jun 2017 17:54:41 +0000 (12:54 -0500)]
bpo-30583: Fix typo in datetime dateutil documentation (GH-1972)

Replace `datetuil` into `dateutil`

7 years agobpo-30557: Fix test_faulthandler (#1969)
Victor Stinner [Tue, 6 Jun 2017 17:40:41 +0000 (19:40 +0200)]
bpo-30557: Fix test_faulthandler (#1969)

On Windows 8, 8.1 and 10 at least, the exit code is the exception
code (no bit is cleared).

7 years agobpo-30534: Fixed error messages when pass keyword arguments (#1901)
Serhiy Storchaka [Tue, 6 Jun 2017 15:45:22 +0000 (18:45 +0300)]
bpo-30534: Fixed error messages when pass keyword arguments (#1901)

to functions implemented in C that don't support this.

Also unified error messages for functions that don't take positional or keyword
arguments.

7 years agobpo-25324: Move the description of tokenize tokens to token.rst. (#1911)
Serhiy Storchaka [Tue, 6 Jun 2017 15:43:35 +0000 (18:43 +0300)]
bpo-25324: Move the description of tokenize tokens to token.rst. (#1911)

7 years agobpo-30520: Implemented pickling for loggers. (#1956)
Vinay Sajip [Tue, 6 Jun 2017 15:34:29 +0000 (16:34 +0100)]
bpo-30520: Implemented pickling for loggers. (#1956)

Implemented pickling for loggers.

7 years agoSimplify X.509 extension handling code (#1855)
Alex Gaynor [Tue, 6 Jun 2017 11:53:11 +0000 (07:53 -0400)]
Simplify X.509 extension handling code (#1855)

* Simplify X.509 extension handling code

The previous implementation had grown organically over time, as OpenSSL's API evolved.

* Delete even more code

7 years agobpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (GH-1439)
Oz N Tiram [Tue, 6 Jun 2017 09:35:59 +0000 (11:35 +0200)]
bpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (GH-1439)

Several class attributes have been added to calendar.HTMLCalendar that allow customization of the CSS classes used in the resulting HTML. This can be done by subclasses HTMLCalendar and overwriting those class attributes (Patch by Oz Tiram).

7 years agoInstall dependencies in Travis OSX build (GH-1952)
Zachary Ware [Tue, 6 Jun 2017 00:11:29 +0000 (19:11 -0500)]
Install dependencies in Travis OSX build (GH-1952)

7 years agobpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928)
Zachary Ware [Mon, 5 Jun 2017 23:42:17 +0000 (18:42 -0500)]
bpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928)

Also weakens the 'should this be run?' regex to allow all builds when .travis.yml changes.

7 years agobpo-30557: faulthandler now correctly filters and displays exception codes on Windows...
Steve Dower [Mon, 5 Jun 2017 22:54:15 +0000 (15:54 -0700)]
bpo-30557: faulthandler now correctly filters and displays exception codes on Windows (#1924)

* bpo-30557: faulthandler now correctly filters and displays exception codes on Windows

* Adds test for non-fatal exceptions.

* Adds bpo number to comment.

7 years agobpo-30530: Update Descriptor How To Documentation (GH-1845)
Mariano Anaya [Mon, 5 Jun 2017 02:46:50 +0000 (04:46 +0200)]
bpo-30530: Update Descriptor How To Documentation (GH-1845)

Update the code example in Functions and Methods section
Remove objtype argument in MethodType

7 years agoOnly run AppVeyor on long-lived branches (GH-1941)
Zachary Ware [Sun, 4 Jun 2017 20:18:50 +0000 (15:18 -0500)]
Only run AppVeyor on long-lived branches (GH-1941)

Also on the short-lived `buildbot-custom` branch.

7 years agobpo-30567: Fix refleak in sys.getwindowsversion (#1940)
Segev Finer [Sun, 4 Jun 2017 17:52:27 +0000 (20:52 +0300)]
bpo-30567: Fix refleak in sys.getwindowsversion (#1940)

7 years agobpo-30538: Update count() in Functional Programming HOWTO (#1919)
csabella [Sun, 4 Jun 2017 17:39:21 +0000 (13:39 -0400)]
bpo-30538: Update count() in Functional Programming HOWTO (#1919)

* bpo-30538: Update count() in Functional HOWTO

* bpo-30538: Update enumerate() arguments in Functional HOWTO

7 years agoSimplify code in warnings modules (#1935)
Alex Gaynor [Sun, 4 Jun 2017 15:34:16 +0000 (11:34 -0400)]
Simplify code in warnings modules (#1935)

Metaprogramming a list of attributes was excessive, and made the code less readable and slower.

7 years agofix comment (#1798)
leodema [Sun, 4 Jun 2017 06:41:41 +0000 (07:41 +0100)]
fix comment (#1798)

7 years agoTurn on macOS builds for Travis (GH-1846)
Brett Cannon [Sat, 3 Jun 2017 17:24:17 +0000 (10:24 -0700)]
Turn on macOS builds for Travis (GH-1846)

Initially the macOS builds are allowed to fail until such time that they can be determined to be stable and not add an unacceptable amount of time to the overall Travis-passing process.

7 years agoFix bpo-30526: Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through...
Antoine Pitrou [Sat, 3 Jun 2017 10:32:28 +0000 (12:32 +0200)]
Fix bpo-30526: Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through attribute (#1922)

* Fix bpo-30526: Add TextIOWrapper.reconfigure()

* Apply Nick's improved wording

* Update Misc/NEWS

7 years agobpo-24899: Add comparison table for os.path -> pathlib (GH-1753)
Jamiel Almeida [Fri, 2 Jun 2017 18:36:02 +0000 (11:36 -0700)]
bpo-24899: Add comparison table for os.path -> pathlib (GH-1753)

7 years agoFix skipping test_UNC_path on AppVeyor due to a different error being raised (#1920)
Segev Finer [Fri, 2 Jun 2017 16:28:16 +0000 (19:28 +0300)]
Fix skipping test_UNC_path on AppVeyor due to a different error being raised (#1920)

We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to
ENOENT (2).

7 years agobpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW...
Segev Finer [Fri, 2 Jun 2017 16:26:01 +0000 (19:26 +0300)]
bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails (#1912)

* bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails

* bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails

7 years agobpo-30052: Always regenerate cross-references (#1339)
Nick Coghlan [Fri, 2 Jun 2017 13:30:57 +0000 (23:30 +1000)]
bpo-30052: Always regenerate cross-references (#1339)

* bpo-30052: Always regenerate cross-references

The patch for bpo-30052 changed the preferred link target
for :func:`bytes` and :func`bytearray` references to be the
respective type definitions rather than the corresponding
builtin function entries.

This patch changes the daily documentation builds to disable
the output caching in Sphinx, in order to ensure that
cross-reference changes like this one are reliably picked
up and applied automatically after merging.

7 years agobpo-30245: Fix possible overflow when organize struct.pack_into error message (#1682)
Johan Liu [Fri, 2 Jun 2017 06:33:04 +0000 (14:33 +0800)]
bpo-30245: Fix possible overflow when organize struct.pack_into error message (#1682)

7 years agobpo-29660: traceback: Document that etype is ignored in some places. (GH-344)
Matthias Bussonnier [Thu, 1 Jun 2017 21:54:01 +0000 (14:54 -0700)]
bpo-29660: traceback: Document that etype is ignored in some places. (GH-344)

7 years agobpo-25324: add missing comma in Parser/tokenizer.c (GH-1910)
Albert-Jan Nijburg [Thu, 1 Jun 2017 20:51:27 +0000 (21:51 +0100)]
bpo-25324: add missing comma in Parser/tokenizer.c (GH-1910)

7 years agoMark PyDict_GetItemWithError() as returning a borrowed reference. (#1818)
Eric Snow [Thu, 1 Jun 2017 18:29:13 +0000 (12:29 -0600)]
Mark PyDict_GetItemWithError() as returning a borrowed reference. (#1818)

7 years agobpo-30499: Remove a deprecated note about sets. (GH-1848)
Julien [Thu, 1 Jun 2017 14:02:21 +0000 (16:02 +0200)]
bpo-30499: Remove a deprecated note about sets. (GH-1848)

7 years agobpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676)
Xiang Zhang [Thu, 1 Jun 2017 13:11:56 +0000 (21:11 +0800)]
bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676)

7 years agobpo-30509: Clean up calling type slots. (#1883)
Serhiy Storchaka [Thu, 1 Jun 2017 05:18:25 +0000 (08:18 +0300)]
bpo-30509: Clean up calling type slots. (#1883)

Also speed up slot_sq_item.

7 years agobpo-27618: Clarify that threading.Lock is a factory function (GH-1307)
csabella [Thu, 1 Jun 2017 00:14:19 +0000 (20:14 -0400)]
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307)

7 years agoFix Travis config to reinstate test build (GH-1879)
Hiro Asari [Wed, 31 May 2017 22:34:00 +0000 (18:34 -0400)]
Fix Travis config to reinstate test build (GH-1879)

7 years agobpo-25324: copy tok_name before changing it (#1608)
Albert-Jan Nijburg [Wed, 31 May 2017 14:00:21 +0000 (15:00 +0100)]
bpo-25324: copy tok_name before changing it (#1608)

* add test to check if were modifying token

* copy list so import tokenize doesnt have side effects on token

* shorten line

* add tokenize tokens to token.h to get them to show up in token

* move ERRORTOKEN back to its previous location, and fix nitpick

* copy comments from token.h automatically

* fix whitespace and make more pythonic

* change to fix comments from @haypo

* update token.rst and Misc/NEWS

* change wording

* some more wording changes

7 years agosubprocess test_empty_env typo fix. (#1877)
Gregory P. Smith [Tue, 30 May 2017 23:21:47 +0000 (16:21 -0700)]
subprocess test_empty_env typo fix. (#1877)

7 years agobpo-17188: add missing periods at the end of sentences (GH-1875)
Mariatta [Tue, 30 May 2017 22:26:42 +0000 (15:26 -0700)]
bpo-17188: add missing periods at the end of sentences (GH-1875)