[Python-checkins] cpython (2.7): remove assignment in conditional
benjamin.peterson
python-checkins at python.org
Wed Apr 1 18:37:52 CEST 2015
https://hg.python.org/cpython/rev/5d88f6531872
changeset: 95353:5d88f6531872
branch: 2.7
parent: 95344:d444496e714a
user: Benjamin Peterson <benjamin at python.org>
date: Wed Apr 01 11:16:40 2015 -0400
summary:
remove assignment in conditional
files:
Modules/socketmodule.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -4207,7 +4207,8 @@
goto err;
}
- if ((all = PyList_New(0)) == NULL)
+ all = PyList_New(0);
+ if (all == NULL)
goto err;
for (res = res0; res; res = res->ai_next) {
PyObject *addr =
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list