mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Fixed error message on Binary(str) in Python 3
This commit is contained in:
parent
be22dfb765
commit
e4a84b9ce9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user