summaryrefslogtreecommitdiff
path: root/psycopg/connection_int.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-03-17 18:45:25 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-03-17 18:45:25 +0000
commitdc5dd3052612fa79aa7416f100d982a5d8cb477b (patch)
treed5d38ea759a17c0dcf507a23cb5cf727b65c129a /psycopg/connection_int.c
parente4d365705aeb0c2f0f0877d7544c827e949dff37 (diff)
downloadpsycopg2-naming.tar.gz
Prefix 'psycopg_' changed to 'psyco_'naming
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r--psycopg/connection_int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c
index ad17e45..1f4115d 100644
--- a/psycopg/connection_int.c
+++ b/psycopg/connection_int.c
@@ -79,7 +79,7 @@ const int SRV_STATE_UNCHANGED = -1;
PyObject *
conn_text_from_chars(connectionObject *self, const char *str)
{
- return psycopg_text_from_chars_safe(str, -1, self ? self->pydecoder : NULL);
+ return psyco_text_from_chars_safe(str, -1, self ? self->pydecoder : NULL);
}
@@ -478,7 +478,7 @@ conn_get_python_codec(const char *encoding,
/* get the Python name of the encoding as a C string */
if (!(encname = conn_pgenc_to_pyenc(encoding, &pgenc))) { goto exit; }
- if (!(encname = psycopg_ensure_bytes(encname))) { goto exit; }
+ if (!(encname = psyco_ensure_bytes(encname))) { goto exit; }
/* Look up the codec functions */
if (!(enc_tmp = PyCodec_Encoder(Bytes_AS_STRING(encname)))) { goto exit; }
@@ -1424,7 +1424,7 @@ conn_tpc_command(connectionObject *self, const char *cmd, xidObject *xid)
Dprintf("conn_tpc_command: %s", cmd);
/* convert the xid into PostgreSQL transaction id while keeping the GIL */
- if (!(tid = psycopg_ensure_bytes(xid_get_tid(xid)))) { goto exit; }
+ if (!(tid = psyco_ensure_bytes(xid_get_tid(xid)))) { goto exit; }
if (!(ctid = Bytes_AsString(tid))) { goto exit; }
Py_BEGIN_ALLOW_THREADS;