Minor code beautification.

This commit is contained in:
Raymond Hettinger 2013-09-07 22:06:35 -07:00
parent 4ea9080da9
commit 583cd03fd1
1 changed files with 5 additions and 6 deletions

View File

@ -446,14 +446,13 @@ set_clear_internal(PySetObject *so)
int table_is_malloced; int table_is_malloced;
Py_ssize_t fill; Py_ssize_t fill;
setentry small_copy[PySet_MINSIZE]; setentry small_copy[PySet_MINSIZE];
#ifdef Py_DEBUG
Py_ssize_t i, n;
assert (PyAnySet_Check(so));
n = so->mask + 1; #ifdef Py_DEBUG
i = 0; Py_ssize_t i = 0;
Py_ssize_t n = so->mask + 1;
#endif #endif
assert (PyAnySet_Check(so));
table = so->table; table = so->table;
assert(table != NULL); assert(table != NULL);
table_is_malloced = table != so->smalltable; table_is_malloced = table != so->smalltable;
@ -2366,7 +2365,7 @@ test_c_api(PySetObject *so)
Py_ssize_t count; Py_ssize_t count;
char *s; char *s;
Py_ssize_t i; Py_ssize_t i;
PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x; PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x=NULL;
PyObject *ob = (PyObject *)so; PyObject *ob = (PyObject *)so;
Py_hash_t hash; Py_hash_t hash;
PyObject *str; PyObject *str;