summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-09-08 05:06:35 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-09-08 05:06:35 (GMT)
commit583cd03fd120d14ea65159e17a6407e9447a125e (patch)
tree9b6abcc3cabebd32994b43f3c27245648251be6b /Objects
parent4ea9080da982d05c60484ab4e9bda3a946c1190b (diff)
downloadcpython-583cd03fd120d14ea65159e17a6407e9447a125e.zip
cpython-583cd03fd120d14ea65159e17a6407e9447a125e.tar.gz
cpython-583cd03fd120d14ea65159e17a6407e9447a125e.tar.bz2
Minor code beautification.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 7364fca..9df2fd3 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -446,14 +446,13 @@ set_clear_internal(PySetObject *so)
int table_is_malloced;
Py_ssize_t fill;
setentry small_copy[PySet_MINSIZE];
-#ifdef Py_DEBUG
- Py_ssize_t i, n;
- assert (PyAnySet_Check(so));
- n = so->mask + 1;
- i = 0;
+#ifdef Py_DEBUG
+ Py_ssize_t i = 0;
+ Py_ssize_t n = so->mask + 1;
#endif
+ assert (PyAnySet_Check(so));
table = so->table;
assert(table != NULL);
table_is_malloced = table != so->smalltable;
@@ -2366,7 +2365,7 @@ test_c_api(PySetObject *so)
Py_ssize_t count;
char *s;
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;
Py_hash_t hash;
PyObject *str;