diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst index 8eb339aa..59aa9ac6 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 5c609c80..86b4ee0a 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; }