summaryrefslogtreecommitdiff
path: root/psycopg/adapter_binary.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-15 15:53:07 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-15 15:53:07 +0000
commite4a84b9ce9bf61a54db998a78fba18c151cde66c (patch)
tree52439201b448824dc6e03aad058ae13900949eb1 /psycopg/adapter_binary.c
parentbe22dfb765dddbf27560729c74bb0ee03e39f56a (diff)
downloadpsycopg2-e4a84b9ce9bf61a54db998a78fba18c151cde66c.tar.gz
Fixed error message on Binary(str) in Python 3
Diffstat (limited to 'psycopg/adapter_binary.c')
-rw-r--r--psycopg/adapter_binary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/adapter_binary.c b/psycopg/adapter_binary.c
index ccfaf24..d54d17a 100644
--- a/psycopg/adapter_binary.c
+++ b/psycopg/adapter_binary.c
@@ -88,9 +88,9 @@ binary_quote(binaryObject *self)
PQfreemem(to);
}
- /* if the wrapped object is not a string or a buffer, this is an error */
+ /* if the wrapped object is not bytes or a buffer, this is an error */
else {
- PyErr_SetString(PyExc_TypeError, "can't escape non-string object");
+ PyErr_SetString(PyExc_TypeError, "can't escape non-bytes object");
return NULL;
}