pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix Python deprecation warning
Date: Fri, 06 Mar 2026 09:49:19 +0000
Message-ID: <E1vyRo7-002eqs-0Q@gemulon.postgresql.org> (raw)

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

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(-)



Message-ID: <E1vyRo7-002eqs-0Q@gemulon.postgresql.org>
Permalink:  ../E1vyRo7-002eqs-0Q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vyRo7-002eqs-0Q@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix Python deprecation warning
  In-Reply-To: <E1vyRo7-002eqs-0Q@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox