Fix Python deprecation warning
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-03-06T09:31:59Z
Releases:
19 (unreleased)
Fix Python deprecation warning
Starting with Python 3.14, contrib/unaccent/generate_unaccent_rules.py
complains
DeprecationWarning: codecs.open() is deprecated. Use open() instead.
This makes that change. This works for all Python 3.x versions.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/2a668979-ed92-49a3-abf9-a3ec2d460ec2%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| contrib/unaccent/generate_unaccent_rules.py | modified | +1 −1 |
Discussion
- Unicode update and some tooling improvements 9 messages · 2026-02-26 → 2026-04-13