From: Denis Laxalde Date: Wed, 8 Mar 2023 09:49:54 +0000 (+0100) Subject: doc: fix pg2pyenc() docstring X-Git-Tag: pool-3.2.0~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d7bac224a7921c6c76e869ff5bbeb79446091fe;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.