[Python-checkins] cpython: Minor code beautification.
raymond.hettinger
python-checkins at python.org
Sun Sep 8 07:06:44 CEST 2013
http://hg.python.org/cpython/rev/7d9d55fbc19c
changeset: 85610:7d9d55fbc19c
user: Raymond Hettinger <python at rcn.com>
date: Sat Sep 07 22:06:35 2013 -0700
summary:
Minor code beautification.
files:
Objects/setobject.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -446,14 +446,13 @@
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;
+ 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 @@
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list