Commit ac85eb33 authored by Neal Norwitz's avatar Neal Norwitz

Whitespace cleanup

parent 4f0020ca
...@@ -58,7 +58,7 @@ type_modified(PyTypeObject *type) ...@@ -58,7 +58,7 @@ type_modified(PyTypeObject *type)
PyObject *raw, *ref; PyObject *raw, *ref;
Py_ssize_t i, n; Py_ssize_t i, n;
if(!PyType_HasFeature(type, Py_TPFLAGS_VALID_VERSION_TAG)) if (!PyType_HasFeature(type, Py_TPFLAGS_VALID_VERSION_TAG))
return; return;
raw = type->tp_subclasses; raw = type->tp_subclasses;
...@@ -94,7 +94,7 @@ type_mro_modified(PyTypeObject *type, PyObject *bases) { ...@@ -94,7 +94,7 @@ type_mro_modified(PyTypeObject *type, PyObject *bases) {
Py_ssize_t i, n; Py_ssize_t i, n;
int clear = 0; int clear = 0;
if(!PyType_HasFeature(type, Py_TPFLAGS_HAVE_VERSION_TAG)) if (!PyType_HasFeature(type, Py_TPFLAGS_HAVE_VERSION_TAG))
return; return;
n = PyTuple_GET_SIZE(bases); n = PyTuple_GET_SIZE(bases);
...@@ -1388,8 +1388,8 @@ mro_implementation(PyTypeObject *type) ...@@ -1388,8 +1388,8 @@ mro_implementation(PyTypeObject *type)
PyObject *bases, *result; PyObject *bases, *result;
PyObject *to_merge, *bases_aslist; PyObject *to_merge, *bases_aslist;
if(type->tp_dict == NULL) { if (type->tp_dict == NULL) {
if(PyType_Ready(type) < 0) if (PyType_Ready(type) < 0)
return NULL; return NULL;
} }
...@@ -2321,7 +2321,7 @@ _PyType_Lookup(PyTypeObject *type, PyObject *name) ...@@ -2321,7 +2321,7 @@ _PyType_Lookup(PyTypeObject *type, PyObject *name)
unsigned int h; unsigned int h;
if (MCACHE_CACHEABLE_NAME(name) && if (MCACHE_CACHEABLE_NAME(name) &&
PyType_HasFeature(type,Py_TPFLAGS_VALID_VERSION_TAG)) { PyType_HasFeature(type, Py_TPFLAGS_VALID_VERSION_TAG)) {
/* fast path */ /* fast path */
h = MCACHE_HASH_METHOD(type, name); h = MCACHE_HASH_METHOD(type, name);
if (method_cache[h].version == type->tp_version_tag && if (method_cache[h].version == type->tp_version_tag &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment