Skip to content

Conversation

@y-okt
Copy link
Contributor

@y-okt y-okt commented Nov 29, 2025

Fixes: #60771

The following error is observed with Python 3.14. The reason is that codecs.open() is deprecated, and we want to use open() instead.

Running C++ linter...
/Users/mzasso/git/nodejs/node/tools/cpplint.py:6709: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with codecs.open(cfg_file, 'r', 'utf8', 'replace') as file_handle:
/Users/mzasso/git/nodejs/node/tools/cpplint.py:6812: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with codecs.open(filename, 'r', 'utf8', 'replace') as target_file:
/Users/mzasso/git/nodejs/node/tools/cpplint.py:6182: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with io.open(filename, 'r', 'utf8', 'replace') as headerfile:

with Python 3.14, codecs.open is deprecated, and thus
introduce open instead.

Fixes: nodejs#60771
@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Nov 29, 2025
@y-okt y-okt closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cpplint uses deprecated Python APIs

2 participants