codes.open is deprecated in python3.14

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #27 by @pes10k — closed without merging

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start in publicsuffix2/init.py at the warning location around line 86, where codecs.open reads the PSL file. Replace the deprecated usage with the supported Python open() behavior and check whether the codecs import is still needed. Done means the package no longer emits this Python 3.14 deprecation warning and the existing tests pass.

Written by the indexing model from the issue text.

Description

Depreciation warning in python3:

<omitted>/lib/python3.14/site-packages/publicsuffix2/__init__.py:86: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with codecs.open(psl_file or PSL_FILE, 'r', encoding='utf8') as psl:
Dominant language
Python
Stars
31
Forks
16
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/python-publicsuffix2

All issues in aboutcode-org/python-publicsuffix2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.