psycopg_escape_string: don't make me cringe

Just reformatted.
This commit is contained in:
Daniele Varrazzo 2018-12-28 01:47:50 +01:00
parent 79de02d7d5
commit 15cba69a20

View File

@ -55,8 +55,8 @@ psycopg_escape_string(connectionObject *conn, const char *from, Py_ssize_t len,
if (len < 0) {
len = strlen(from);
} else if (strchr(from, '\0') != from + len) {
PyErr_Format(PyExc_ValueError, "A string literal cannot contain NUL (0x00) characters.");
PyErr_Format(PyExc_ValueError,
"A string literal cannot contain NUL (0x00) characters.");
return NULL;
}