From 088978e7b14821d4de2f449ee8dfeecaf90de888 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 11 Dec 2011 02:55:29 +0000 Subject: [PATCH] Typo fixed writeable -> writable Closes ticket #79. --- doc/src/cursor.rst | 2 +- psycopg/cursor_type.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }