Skip to content

Replace deprecated codecs.open by open#223

Open
FriedrichFroebel wants to merge 1 commit intomicroformats:mainfrom
FriedrichFroebel:codecs-open
Open

Replace deprecated codecs.open by open#223
FriedrichFroebel wants to merge 1 commit intomicroformats:mainfrom
FriedrichFroebel:codecs-open

Conversation

@FriedrichFroebel
Copy link

Running tests for one of my packages relying on mf2py with warnings enabled prints:

../../../../../opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/mf2py/backcompat.py:50: 11 warnings
  /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/mf2py/backcompat.py:50: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
    with codecs.open(file_path, "r", "utf-8") as f:

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.

1 participant