From cb209b40e52f4af46de6056b56fb2b69064ed851 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 27 Dec 2020 03:18:37 +0100 Subject: [PATCH] Fixed comment after adapters refactoring --- psycopg3/psycopg3/_transform.py | 2 +- psycopg3_c/psycopg3_c/transform.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3