]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fixed comment after adapters refactoring
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 27 Dec 2020 02:18:37 +0000 (03:18 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 27 Dec 2020 16:14:47 +0000 (17:14 +0100)
psycopg3/psycopg3/_transform.py
psycopg3_c/psycopg3_c/transform.pyx

index 11a70c0c8afecbe695f5855530e9daafc5d94a34..8e718a4a390419503554a9b9ecc807ea60fe5b6d 100644 (file)
@@ -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
index 71b97c5a030cdbcd62d19fab8232ece9722d7bb1..e6d47b0c7fdc7f323e1fc99116b47657f198983b 100644 (file)
@@ -164,7 +164,7 @@ cdef class Transformer:
             return <object>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