mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
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
This commit is contained in:
parent
258248d0bd
commit
16686a853f
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ def main(args):
|
|||
charactersSet = set()
|
||||
|
||||
# read file UnicodeData.txt
|
||||
with codecs.open(
|
||||
with open(
|
||||
args.unicodeDataFilePath, mode='r', encoding='UTF-8',
|
||||
) as unicodeDataFile:
|
||||
# read everything we need into memory
|
||||
|
|
|
|||
Loading…
Reference in a new issue