diff options
author | Georg Brandl <georg@python.org> | 2005-08-31 22:21:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-31 22:21:15 (GMT) |
commit | 99d7e4e8eb0f8971b36e1f63db144423d802ebc2 (patch) | |
tree | 728e7b6f3079f1e23e07a81baf9b278382d3fe08 | |
parent | 7847405a76869ff439e9a77a86087b83ede8c192 (diff) | |
download | cpython-99d7e4e8eb0f8971b36e1f63db144423d802ebc2.zip cpython-99d7e4e8eb0f8971b36e1f63db144423d802ebc2.tar.gz cpython-99d7e4e8eb0f8971b36e1f63db144423d802ebc2.tar.bz2 |
Whitespace normalization.
-rw-r--r-- | Python/bltinmodule.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index af5a55b..2cadb49 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -529,7 +529,7 @@ builtin_eval(PyObject *self, PyObject *args) return NULL; } if (globals != Py_None && !PyDict_Check(globals)) { - PyErr_SetString(PyExc_TypeError, PyMapping_Check(globals) ? + PyErr_SetString(PyExc_TypeError, PyMapping_Check(globals) ? "globals must be a real dict; try eval(expr, {}, mapping)" : "globals must be a dict"); return NULL; @@ -1198,11 +1198,11 @@ min_max(PyObject *args, PyObject *kwds, int op) if (kwds != NULL && PyDict_Check(kwds) && PyDict_Size(kwds)) { keyfunc = PyDict_GetItemString(kwds, "key"); if (PyDict_Size(kwds)!=1 || keyfunc == NULL) { - PyErr_Format(PyExc_TypeError, + PyErr_Format(PyExc_TypeError, "%s() got an unexpected keyword argument", name); return NULL; } - } + } it = PyObject_GetIter(v); if (it == NULL) @@ -1916,7 +1916,7 @@ builtin_sorted(PyObject *self, PyObject *args, PyObject *kwds) Py_DECREF(newlist); return NULL; } - + newargs = PyTuple_GetSlice(args, 1, 4); if (newargs == NULL) { Py_DECREF(newlist); @@ -2548,21 +2548,21 @@ filterunicode(PyObject *func, PyObject *strobj) if (ok) { int reslen; if (!PyUnicode_Check(item)) { - PyErr_SetString(PyExc_TypeError, + PyErr_SetString(PyExc_TypeError, "can't filter unicode to unicode:" " __getitem__ returned different type"); Py_DECREF(item); goto Fail_1; } reslen = PyUnicode_GET_SIZE(item); - if (reslen == 1) + if (reslen == 1) PyUnicode_AS_UNICODE(result)[j++] = PyUnicode_AS_UNICODE(item)[0]; else { /* do we need more space? */ int need = j + reslen + len - i - 1; if (need > outlen) { - /* overallocate, + /* overallocate, to avoid reallocations */ if (need < 2 * outlen) need = 2 * outlen; |