Skip to content

cpplint uses deprecated Python APIs #60771

@targos

Description

@targos

With Python 3.14:

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions