-- fix bug in constant_repr() which printed the final key twice

This commit is contained in:
Ken Hughes
2005-11-16 19:00:47 +00:00
parent b0995a2a84
commit 6b407d488e

View File

@@ -146,10 +146,10 @@ static PyObject *constant_repr(BPy_constant * self)
} else {
strcat(str,"{");
while (PyDict_Next(self->dict, &pos, &key, &value)) {
if( pos != 1 )
strcat (str, ", ");
strcat (str, PyString_AsString(key));
strcat (str, ", ");
}
strcat(str, PyString_AsString(key));
strcat(str,"}");
}
strcat(str, "]");