mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Remove space between function name and left paren
in function calls.
This commit is contained in:
parent
23721ee96c
commit
8f9cc29e74
1 changed files with 92 additions and 94 deletions
|
@ -474,8 +474,7 @@ mmap_flush_method(mmap_object *self, PyObject *args)
|
||||||
if (!PyArg_ParseTuple(args, "|nn:flush", &offset, &size)) {
|
if (!PyArg_ParseTuple(args, "|nn:flush", &offset, &size)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
} else if ((offset + size) > self->size) {
|
} else if ((offset + size) > self->size) {
|
||||||
PyErr_SetString (PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError, "flush values out of range");
|
||||||
"flush values out of range");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
|
@ -502,9 +501,9 @@ mmap_seek_method(mmap_object *self, PyObject *args)
|
||||||
int dist;
|
int dist;
|
||||||
int how=0;
|
int how=0;
|
||||||
CHECK_VALID(NULL);
|
CHECK_VALID(NULL);
|
||||||
if (!PyArg_ParseTuple (args, "i|i:seek", &dist, &how)) {
|
if (!PyArg_ParseTuple(args, "i|i:seek", &dist, &how))
|
||||||
return(NULL);
|
return NULL;
|
||||||
} else {
|
else {
|
||||||
size_t where;
|
size_t where;
|
||||||
switch (how) {
|
switch (how) {
|
||||||
case 0: /* relative to start */
|
case 0: /* relative to start */
|
||||||
|
@ -523,8 +522,7 @@ mmap_seek_method(mmap_object *self, PyObject *args)
|
||||||
where = self->size + dist;
|
where = self->size + dist;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PyErr_SetString (PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError, "unknown seek type");
|
||||||
"unknown seek type");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (where > self->size)
|
if (where > self->size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue