]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Pure Python implementation called 'python', not 'ctypes'
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Nov 2020 18:46:55 +0000 (18:46 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Nov 2020 18:46:55 +0000 (18:46 +0000)
.travis.yml
psycopg3/psycopg3/pq/__init__.py
psycopg3/psycopg3/pq/pq_ctypes.py

index ebb68e1334f517e516d382cd8938c8c623d00ee4..3b8e4b559d7e914dbf5fc74778bb86c6717eda5b 100644 (file)
@@ -47,7 +47,7 @@ matrix:
         - TOXENV=py36
         - TOXDIR=psycopg3
         - PGVER=9.6
-        - PSYCOPG3_IMPL=ctypes
+        - PSYCOPG3_IMPL=python
         - PGPORT=5432
 
     - python: 3.7
@@ -74,7 +74,7 @@ matrix:
         - TOXENV=py37
         - TOXDIR=psycopg3
         - PGVER=11
-        - PSYCOPG3_IMPL=ctypes
+        - PSYCOPG3_IMPL=python
         - PGPORT=5433
 
     - python: 3.8
@@ -102,7 +102,7 @@ matrix:
         - TOXENV=py38
         - TOXDIR=psycopg3
         - PGVER=12
-        - PSYCOPG3_IMPL=ctypes
+        - PSYCOPG3_IMPL=python
         - PGPORT=5433
         - BUILD_DOCS=1
 
index 6472fc83f5c71891f279e4c8c32730c849fd1aa5..fa21c491b656a730c32085aa5d18e8669281b893 100644 (file)
@@ -64,12 +64,12 @@ def import_from_libpq() -> None:
             Escaping = pq_cython.Escaping
             return
 
-    if not impl or impl == "ctypes":
+    if not impl or impl == "python":
         try:
             from . import pq_ctypes
         except Exception as e:
             if not impl:
-                logger.debug("ctypes pq wrapper not available: %s", e)
+                logger.debug("python pq wrapper not available: %s", e)
             else:
                 raise ImportError(
                     f"requested pq implementation '{impl}' not available"
index 5532540b01d76b4268277118058ca1aae79f8ad1..da91410f30079ac9b86e986c872af67907398eb8 100644 (file)
@@ -34,7 +34,7 @@ from . import _pq_ctypes as impl
 if TYPE_CHECKING:
     from . import proto
 
-__impl__ = "ctypes"
+__impl__ = "python"
 
 logger = logging.getLogger("psycopg3")