From: Denis Laxalde Date: Wed, 8 Mar 2023 09:49:54 +0000 (+0100) Subject: doc: fix pg2pyenc() docstring X-Git-Tag: pool-3.1.7~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1915d4c7702215da52a1da040dd15f249fbd5235;p=thirdparty%2Fpsycopg.git doc: fix pg2pyenc() docstring --- diff --git a/psycopg/psycopg/_encodings.py b/psycopg/psycopg/_encodings.py index c584b2635..876acb975 100644 --- a/psycopg/psycopg/_encodings.py +++ b/psycopg/psycopg/_encodings.py @@ -135,7 +135,7 @@ def py2pgenc(name: str) -> bytes: @cache def pg2pyenc(name: bytes) -> str: - """Convert a Python encoding name to PostgreSQL encoding name. + """Convert a PostgreSQL encoding name to Python encoding name. Raise NotSupportedError if the PostgreSQL encoding is not supported by Python.