Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/compression.zstd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Reading and writing compressed files
argument is not None, a :exc:`!TypeError` will be raised.

When writing, the *options* argument can be a dictionary
providing advanced decompression parameters; see
providing advanced compression parameters; see
:class:`CompressionParameter` for detailed information about supported
parameters. The *level* argument is the compression level to use when
writing compressed data. Only one of *level* or *options* may be non-None.
Expand Down Expand Up @@ -117,7 +117,7 @@ Reading and writing compressed files
argument is not None, a :exc:`!TypeError` will be raised.

When writing, the *options* argument can be a dictionary
providing advanced decompression parameters; see
providing advanced compression parameters; see
:class:`CompressionParameter` for detailed information about supported
parameters. The *level* argument is the compression level to use when
writing compressed data. Only one of *level* or *options* may be passed. The
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ that may require changes to your code.
:func:`resource.setrlimit` and :func:`resource.prlimit` is now deprecated.
(Contributed by Serhiy Storchaka in :gh:`137044`.)

* :meth:`~mmap.mmap.resize` has been removed on platforms that don't support the
* :meth:`mmap.mmap.resize` has been removed on platforms that don't support the
underlying syscall, instead of raising a :exc:`SystemError`.

* A resource warning is now emitted for an unclosed
Expand Down
11 changes: 11 additions & 0 deletions Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1991,6 +1991,17 @@ def test_no_newline(self):
safe_patterns.append(r'\x1b\[\?25[hl]') # cursor visibility
safe_patterns.append(r'\x1b\[\?12[hl]') # cursor blinking

# rmam / smam - automatic margins
rmam = ti.get("rmam")
smam = ti.get("smam")
if rmam:
safe_patterns.append(re.escape(rmam.decode("ascii")))
if smam:
safe_patterns.append(re.escape(smam.decode("ascii")))
if not rmam and not smam:
safe_patterns.append(r'\x1b\[\?7l') # turn off automatic margins
safe_patterns.append(r'\x1b\[\?7h') # turn on automatic margins

# Modern extensions not in standard terminfo - always use patterns
safe_patterns.append(r'\x1b\[\?2004[hl]') # bracketed paste mode
safe_patterns.append(r'\x1b\[\?12[hl]') # cursor blinking (may be separate)
Expand Down
4 changes: 2 additions & 2 deletions Python/traceback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ _Py_DumpTraceback(int fd, PyThreadState *tstate)


// Write the thread name
static void
static void _Py_NO_SANITIZE_THREAD
write_thread_name(int fd, PyThreadState *tstate)
{
#ifndef MS_WINDOWS
Expand Down Expand Up @@ -1239,7 +1239,7 @@ write_thread_name(int fd, PyThreadState *tstate)

This function is signal safe (except on Windows). */

static void
static void _Py_NO_SANITIZE_THREAD
write_thread_id(int fd, PyThreadState *tstate, int is_current)
{
if (is_current)
Expand Down
Loading