commit | 211c6258294bf683935bff73a61ce3dd84070988 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Sun Feb 01 10:28:51 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Sun Feb 01 10:28:51 2009 +0000 |
tree | 8dc2a5a5fdcd1f7bc0e176bce006b12e1b588a05 | |
parent | 776e7014e97a79cc2bd5fffd15908e83ff0273cf [diff] [blame] |
Issue #1717, stage 2: remove uses of tp_compare in Modules and most Objects.
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 5813fd4..1036367 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c
@@ -715,7 +715,7 @@ i = 0; module_name = NULL; while ((j = PyDict_Next(modules_dict, &i, &module_name, &module))) { - if (PyObject_Compare(module_name, main_str) == 0) + if (PyObject_RichCompareBool(module_name, main_str, Py_EQ) == 1) continue; obj = PyObject_GetAttr(module, global_name);