Skip to content

Comments

Remove Python 3.14 DeprecationWarning: codecs.open() is deprecated.#97

Closed
jedie wants to merge 1 commit intoeditorconfig:masterfrom
jedie:patch-1
Closed

Remove Python 3.14 DeprecationWarning: codecs.open() is deprecated.#97
jedie wants to merge 1 commit intoeditorconfig:masterfrom
jedie:patch-1

Conversation

@jedie
Copy link

@jedie jedie commented Jan 25, 2026

Will close #96

@xuhdev
Copy link
Member

xuhdev commented Jan 26, 2026

I'm a little puzzled. The doc doesn't mention any deprecation and the code doesn't invoke codec.open either. .editorconfig is required to be in UTF-8, so it has to be specified somehow. Any ideas?

@xuhdev
Copy link
Member

xuhdev commented Jan 26, 2026

I saw another example here: https://github.com/squidfunk/mkdocs-material/pull/8447/changes

Looks like they fixed the same warning by using open(..., encoding='utf-8').

@cxw42
Copy link
Member

cxw42 commented Feb 1, 2026

I can't repro --- will discuss in #96

@cxw42 cxw42 self-requested a review February 1, 2026 02:40
Copy link
Member

@cxw42 cxw42 left a comment

Choose a reason for hiding this comment

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

Marking as "request changes" pending discussion in #96. Thanks!

@xuhdev xuhdev closed this Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python 3.14 DeprecationWarning: codecs.open() is deprecated.

3 participants