bpo-41282: Fix distutils.utils.byte_compile() DeprecationWarning by vstinner · Pull Request #25406 · python/cpython
Conversation
* byte_compile() of distutils.utils no longer logs a DeprecationWarning * test_distutils no longer logs a DeprecationWarning
| msg = distutils._DEPRECATION_MESSAGE | ||
| cmd = [sys.executable] | ||
| cmd.extend(subprocess._optim_args_from_interpreter_flags()) | ||
| cmd.append(f'-Wignore:{msg}:DeprecationWarning') |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, -W option escapes the message using re.escape(), it's not possible to use a regex :-(
vstinner
deleted the
fix_distutils_deprecatation_warns
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters