summaryrefslogtreecommitdiff
path: root/psycopg
diff options
context:
space:
mode:
authorTim Gates <tim.gates@iress.com>2021-05-18 05:47:41 +1000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2021-05-20 12:22:47 +0200
commit0d7953a521a2957f44dff72df40e610973f37e75 (patch)
treed57afb8d9734cada94f318f3b9bfa90bd00a46fd /psycopg
parent73969ba3e757373a73b4c163af338c6efbab5bef (diff)
downloadpsycopg2-0d7953a521a2957f44dff72df40e610973f37e75.tar.gz
docs: fix a few simple typos
There are small typos in: - doc/src/faq.rst - psycopg/cursor_type.c - psycopg/xid_type.c - scripts/make_errorcodes.py - scripts/make_errors.py - tests/dbapi20.py - tests/test_connection.py Fixes: - Should read `publicly` rather than `publically`. - Should read `unicode` rather than `uniconde`. - Should read `supposed` rather than `suppsed`. - Should read `something` rather than `somenthing`. - Should read `portable` rather than `portible`. - Should read `exhausted` rather than `exausted`. - Should read `compliance` rather than `compiliance`. Closes #1275
Diffstat (limited to 'psycopg')
-rw-r--r--psycopg/cursor_type.c2
-rw-r--r--psycopg/xid_type.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c
index c290c71..199c8a3 100644
--- a/psycopg/cursor_type.c
+++ b/psycopg/cursor_type.c
@@ -768,7 +768,7 @@ curs_fetchone(cursorObject *self, PyObject *dummy)
Dprintf("curs_fetchone: rowcount = %ld", self->rowcount);
if (self->row >= self->rowcount) {
- /* we exausted available data: return None */
+ /* we exhausted available data: return None */
Py_RETURN_NONE;
}
diff --git a/psycopg/xid_type.c b/psycopg/xid_type.c
index a4e05cb..2ac36ed 100644
--- a/psycopg/xid_type.c
+++ b/psycopg/xid_type.c
@@ -598,7 +598,7 @@ xid_recover(PyObject *conn)
/* curs = conn.cursor()
* (sort of. Use the real cursor in case the connection returns
- * somenthing non-dbapi -- see ticket #114) */
+ * something non-dbapi -- see ticket #114) */
if (!(curs = PyObject_CallFunctionObjArgs(
(PyObject *)&cursorType, conn, NULL))) { goto exit; }