]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
doc: fix pg2pyenc() docstring
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 8 Mar 2023 09:49:54 +0000 (10:49 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 15 Mar 2023 03:20:19 +0000 (04:20 +0100)
psycopg/psycopg/_encodings.py

index c584b26356b6bca12046b9431a6eb2163aa10b56..876acb975df7d57362b093cfc7e71e02bc9da985 100644 (file)
@@ -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.