gh-133036: Deprecate codecs.open by methane · Pull Request #133038 · python/cpython · GitHub

github.com

Tin mới

methane:deprecate-codecs-open

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Deprecate codecs.open() #133036

: deprecate codecs.open

Codecs and encodings issues

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

bedevere-app Bot commented Apr 27, 2025
bedevere-app Bot commented Apr 27, 2025

bedevere-app Bot commented Apr 27, 2025

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

codecs_open_nowarn -> codecs_open_no_warn

remove codecs.open from error message

https://github.com/python/cpython/blob/main/Doc/deprecations/pending-removal-in-future.rst

Please could you also list it in https://github.com/python/cpython/blob/main/Doc/deprecations/pending-removal-in-future.rst ?

add pending-removal-in-future entry

awaiting change review

View reviewed changes

Apply suggestions from code review

Update Doc/deprecations/pending-removal-in-future.rst

Update Lib/test/test_codecs.py

View reviewed changes

@github-project-automation

DeprecationWarning: codecs.open() deprecated in Python 3.14 zensical/zensical#427

fix: replace deprecated codecs.open() with built-in open() (#429) zensical/zensical#428

DeprecationWarning: codecs.open() deprecated in Python 3.14 zensical/zensical#429