]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Fix py_codecs data type
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 2 Jan 2022 15:37:09 +0000 (16:37 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 2 Jan 2022 15:40:15 +0000 (16:40 +0100)
commita2c2f9c216d6d9686818fbb213219bb8a71f8bb7
treec6aa16efb2279ee81615abc8be4a1849de94bb9d
parent6ac259213d883f2cd6043707221ece25cae66255
Fix py_codecs data type

It doesn't contain str anymore since 3.0.4.

A stricter definition revealed a couple of wrong usages of the mapping.
Use more consistently the higher level `conninfo_encoding()` function
instead of directly the mapping.
psycopg/psycopg/_encodings.py
psycopg/psycopg/generators.py
psycopg/psycopg/pq/misc.py