From: Daniele Varrazzo Date: Sun, 27 Dec 2020 02:18:37 +0000 (+0100) Subject: Fixed comment after adapters refactoring X-Git-Tag: 3.0.dev0~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb209b40e52f4af46de6056b56fb2b69064ed851;p=thirdparty%2Fpsycopg.git Fixed comment after adapters refactoring --- diff --git a/psycopg3/psycopg3/_transform.py b/psycopg3/psycopg3/_transform.py index 11a70c0c8..8e718a4a3 100644 --- a/psycopg3/psycopg3/_transform.py +++ b/psycopg3/psycopg3/_transform.py @@ -102,7 +102,7 @@ class Transformer(AdaptContext): pass # We haven't seen this type in this query yet. Look for an adapter - # in contexts from the most specific to the most generic. + # in the current context (which was grown from more generic ones). # Also look for superclasses: if you can adapt a type you should be # able to adapt its subtypes, otherwise Liskov is sad. dmap = self._adapters._dumpers diff --git a/psycopg3_c/psycopg3_c/transform.pyx b/psycopg3_c/psycopg3_c/transform.pyx index 71b97c5a0..e6d47b0c7 100644 --- a/psycopg3_c/psycopg3_c/transform.pyx +++ b/psycopg3_c/psycopg3_c/transform.pyx @@ -164,7 +164,7 @@ cdef class Transformer: return ptr # We haven't seen this type in this query yet. Look for an adapter - # in contexts from the most specific to the most generic. + # in the current context (which was grown from more generic ones). # Also look for superclasses: if you can adapt a type you should be # able to adapt its subtypes, otherwise Liskov is sad. cdef dict dmap = self.adapters._dumpers