Reformatted code a bit.

This commit is contained in:
Hirokazu Yamamoto 2010-11-07 11:07:44 +00:00
parent baa0f0510e
commit cdc8cdd215
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ add_define(PyObject *dict, const char *key, long value)
PyObject *k = PyUnicode_FromString(key); PyObject *k = PyUnicode_FromString(key);
PyObject *v = PyLong_FromLong(value); PyObject *v = PyLong_FromLong(value);
if (v && k) { if (v && k) {
PyDict_SetItem(dict,k,v); PyDict_SetItem(dict, k, v);
} }
Py_XDECREF(k); Py_XDECREF(k);
Py_XDECREF(v); Py_XDECREF(v);