From: <md...@us...> - 2007-11-15 18:36:37
|
Revision: 4315 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4315&view=rev Author: mdboom Date: 2007-11-15 10:36:27 -0800 (Thu, 15 Nov 2007) Log Message: ----------- Clean up error message. Modified Paths: -------------- trunk/matplotlib/src/_backend_agg.cpp Modified: trunk/matplotlib/src/_backend_agg.cpp =================================================================== --- trunk/matplotlib/src/_backend_agg.cpp 2007-11-15 18:35:30 UTC (rev 4314) +++ trunk/matplotlib/src/_backend_agg.cpp 2007-11-15 18:36:27 UTC (rev 4315) @@ -2294,7 +2294,7 @@ if ((fp = PyFile_AsFile(py_fileobj.ptr())) == NULL) { PyObject* write_method = PyObject_GetAttrString(py_fileobj.ptr(), "write"); if (!(write_method && PyCallable_Check(write_method))) - throw Py::TypeError("Object does not appear to be a Python file-like object"); + throw Py::TypeError("Object does not appear to be a path or a Python file-like object"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |