Staging
v0.8.1
https://github.com/python/cpython
Revision 45df61fd2d58e8db33179f3b5d00e53fe6a7e592 authored by Victor Stinner on 02 November 2020, 22:17:46 UTC, committed by GitHub on 02 November 2020, 22:17:46 UTC
The logging.FileHandler class now keeps a reference to the builtin
open() function to be able to open or reopen the file during Python
finalization.

Fix errors like:

    Exception ignored in: (...)
    Traceback (most recent call last):
      (...)
      File ".../logging/__init__.py", line 1463, in error
      File ".../logging/__init__.py", line 1577, in _log
      File ".../logging/__init__.py", line 1587, in handle
      File ".../logging/__init__.py", line 1649, in callHandlers
      File ".../logging/__init__.py", line 948, in handle
      File ".../logging/__init__.py", line 1182, in emit
      File ".../logging/__init__.py", line 1171, in _open
    NameError: name 'open' is not defined
1 parent 5cf4782
History
Tip revision: 45df61fd2d58e8db33179f3b5d00e53fe6a7e592 authored by Victor Stinner on 02 November 2020, 22:17:46 UTC
bpo-26789: Fix logging.FileHandler._open() at exit (GH-23053)
Tip revision: 45df61f
File Mode Size
Python.asdl -rw-r--r-- 5.2 KB
asdl.py -rw-r--r-- 12.7 KB
asdl_c.py -rwxr-xr-x 50.9 KB
myreadline.c -rw-r--r-- 11.6 KB
parser.c -rw-r--r-- 841.9 KB
peg_api.c -rw-r--r-- 2.2 KB
pegen.c -rw-r--r-- 61.7 KB
pegen.h -rw-r--r-- 10.0 KB
string_parser.c -rw-r--r-- 38.5 KB
string_parser.h -rw-r--r-- 1.8 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 56.9 KB
tokenizer.h -rw-r--r-- 3.8 KB

back to top