summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.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/psycopgmodule.c
parente4d365705aeb0c2f0f0877d7544c827e949dff37 (diff)
downloadpsycopg2-naming.tar.gz
Prefix 'psycopg_' changed to 'psyco_'naming
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index b66d807..0dde27c 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -136,7 +136,7 @@ parse_dsn(PyObject *self, PyObject *args, PyObject *kwargs)
}
Py_INCREF(dsn); /* for ensure_bytes */
- if (!(dsn = psycopg_ensure_bytes(dsn))) { goto exit; }
+ if (!(dsn = psyco_ensure_bytes(dsn))) { goto exit; }
options = PQconninfoParse(Bytes_AS_STRING(dsn), &err);
if (options == NULL) {
@@ -149,7 +149,7 @@ parse_dsn(PyObject *self, PyObject *args, PyObject *kwargs)
goto exit;
}
- res = psycopg_dict_from_conninfo_options(options, /* include_password = */ 1);
+ res = psyco_dict_from_conninfo_options(options, /* include_password = */ 1);
exit:
PQconninfoFree(options); /* safe on null */
@@ -190,9 +190,9 @@ quote_ident(PyObject *self, PyObject *args, PyObject *kwargs)
}
Py_INCREF(ident); /* for ensure_bytes */
- if (!(ident = psycopg_ensure_bytes(ident))) { goto exit; }
+ if (!(ident = psyco_ensure_bytes(ident))) { goto exit; }
- if (!(quoted = psycopg_escape_identifier(conn,
+ if (!(quoted = psyco_escape_identifier(conn,
Bytes_AS_STRING(ident), Bytes_GET_SIZE(ident)))) { goto exit; }
result = conn_text_from_chars(conn, quoted);
@@ -453,10 +453,10 @@ encrypt_password(PyObject *self, PyObject *args, PyObject *kwargs)
}
}
- if (!(user = psycopg_ensure_bytes(user))) { goto exit; }
- if (!(password = psycopg_ensure_bytes(password))) { goto exit; }
+ if (!(user = psyco_ensure_bytes(user))) { goto exit; }
+ if (!(password = psyco_ensure_bytes(password))) { goto exit; }
if (algorithm != Py_None) {
- if (!(algorithm = psycopg_ensure_bytes(algorithm))) {
+ if (!(algorithm = psyco_ensure_bytes(algorithm))) {
goto exit;
}
}