codes.open is deprecated in python3.14
还没有人认领这个 Issue。
- #27 来自 @pes10k —— 已关闭,未合并
评估
调研方向
从 publicsuffix2/init.py 中大约第 86 行的警告位置开始,这里使用 codecs.open 读取 PSL 文件。将已弃用的用法替换为 Python 支持的 open() 行为,并检查是否仍需要导入 codecs。完成的标准是 package 不再发出此 Python 3.14 弃用警告,并且现有测试通过。
由索引模型根据 Issue 内容生成。
描述
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:
- 主要语言
- Python
- 星标
- 30
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/python-publicsuffix2 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 30/100
aboutcode-org/python-publicsuffix2#23 · 1 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 45/100
aboutcode-org/python-publicsuffix2#21 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
aboutcode-org/python-publicsuffix2#18 · 6 条评论 ·
查看 aboutcode-org/python-publicsuffix2 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
ComposioHQ/awesome-claude-skills#2398 ·
维护者通常 2 天内回复
-
bug converter
难度 2/5 1-3 小时 新手友好度 62/100
grafana/sigma-rule-deployment#435 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 73/100
datamodel-code-generator/datamodel-code-generator#5589 ·
维护者通常 1 天内回复
-
Shell: serve the home app's Cookie Policy on a hard reload可能已有人在做 @2001anshkaushik 今天认领。 未关闭feature module:ai
难度 2/5 1-3 小时 新手友好度 88/100
rocketride-org/rocketride-server#2899 · 1 条评论 ·
维护者通常 2 天内回复
-
GEFSv12
难度 2/5 1-3 小时 新手友好度 70/100