summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/src/cursor.rst2
-rw-r--r--psycopg/cursor_type.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst
index 8eb339a..59aa9ac 100644
--- a/doc/src/cursor.rst
+++ b/doc/src/cursor.rst
@@ -528,7 +528,7 @@ The ``cursor`` class
:param sql: the :sql:`COPY` statement to execute.
:param file: a file-like object; must be a readable file for
- :sql:`COPY FROM` or an writeable file for :sql:`COPY TO`.
+ :sql:`COPY FROM` or an writable file for :sql:`COPY TO`.
:param size: size of the read buffer to be used in :sql:`COPY FROM`.
Example:
diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c
index 5c609c8..86b4ee0 100644
--- a/psycopg/cursor_type.c
+++ b/psycopg/cursor_type.c
@@ -1453,7 +1453,7 @@ exit:
#define psyco_curs_copy_expert_doc \
"copy_expert(sql, file, size=8192) -- Submit a user-composed COPY statement.\n" \
-"`file` must be an open, readable file for COPY FROM or an open, writeable\n" \
+"`file` must be an open, readable file for COPY FROM or an open, writable\n" \
"file for COPY TO. The optional `size` argument, when specified for a COPY\n" \
"FROM statement, will be passed to file's read method to control the read\n" \
"buffer size."
@@ -1493,7 +1493,7 @@ psyco_curs_copy_expert(cursorObject *self, PyObject *args, PyObject *kwargs)
)
{
PyErr_SetString(PyExc_TypeError, "file must be a readable file-like"
- " object for COPY FROM; a writeable file-like object for COPY TO."
+ " object for COPY FROM; a writable file-like object for COPY TO."
);
goto exit;
}