| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix Python deprecation warning |
| Date: | 2026-03-06 09:49:19 |
| Message-ID: | E1vyRo7-002eqs-0Q@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/2a668979-ed92-49a3-abf9-a3ec2d460ec2%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/16686a853f1b0f479fbe716acecb3a264e70c824
Modified Files
--------------
contrib/unaccent/generate_unaccent_rules.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrey Borodin | 2026-03-06 15:24:30 | Re: pgsql: Perform provider-specific initialization in new functions. |
| Previous Message | Peter Eisentraut | 2026-03-06 09:22:45 | pgsql: Use typeof everywhere instead of compiler specific spellings |