mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-12 07:10:33 +03:00
Whitespace fixed
This commit is contained in:
parent
c167a6f07f
commit
cf3b7e7e50
|
@ -289,7 +289,7 @@ psyco_conn_lobject(connectionObject *self, PyObject *args, PyObject *keywds)
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, keywds, "|izizO", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, keywds, "|izizO", kwlist,
|
||||||
&oid, &smode, &new_oid, &new_file,
|
&oid, &smode, &new_oid, &new_file,
|
||||||
&factory)) {
|
&factory)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -311,22 +311,22 @@ psyco_conn_lobject(connectionObject *self, PyObject *args, PyObject *keywds)
|
||||||
mode = INV_READ;
|
mode = INV_READ;
|
||||||
else if (smode[0] == 'w')
|
else if (smode[0] == 'w')
|
||||||
mode = INV_WRITE;
|
mode = INV_WRITE;
|
||||||
else if (smode[0] == 'n')
|
else if (smode[0] == 'n')
|
||||||
mode = -1;
|
mode = -1;
|
||||||
else {
|
else {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"mode should be one of 'r', 'w' or 'rw'");
|
"mode should be one of 'r', 'w' or 'rw'");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (factory == NULL) factory = (PyObject *)&lobjectType;
|
if (factory == NULL) factory = (PyObject *)&lobjectType;
|
||||||
if (new_file)
|
if (new_file)
|
||||||
obj = PyObject_CallFunction(factory, "Oiiis",
|
obj = PyObject_CallFunction(factory, "Oiiis",
|
||||||
self, oid, mode, new_oid, new_file);
|
self, oid, mode, new_oid, new_file);
|
||||||
else
|
else
|
||||||
obj = PyObject_CallFunction(factory, "Oiii",
|
obj = PyObject_CallFunction(factory, "Oiii",
|
||||||
self, oid, mode, new_oid);
|
self, oid, mode, new_oid);
|
||||||
|
|
||||||
if (obj == NULL) return NULL;
|
if (obj == NULL) return NULL;
|
||||||
if (PyObject_IsInstance(obj, (PyObject *)&lobjectType) == 0) {
|
if (PyObject_IsInstance(obj, (PyObject *)&lobjectType) == 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user