Revision: 4290
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4290&view=rev
Author:   mdboom
Date:     2007-11-14 11:43:31 -0800 (Wed, 14 Nov 2007)

Log Message:
-----------
Fix flush callback in PNG file-like object writing.

Modified Paths:
--------------
    trunk/matplotlib/src/_backend_agg.cpp

Modified: trunk/matplotlib/src/_backend_agg.cpp
===================================================================
--- trunk/matplotlib/src/_backend_agg.cpp       2007-11-14 19:25:46 UTC (rev 
4289)
+++ trunk/matplotlib/src/_backend_agg.cpp       2007-11-14 19:43:31 UTC (rev 
4290)
@@ -2266,7 +2266,7 @@
 
 static void flush_png_data(png_structp png_ptr) {
   PyObject* py_file_obj = (PyObject*)png_get_io_ptr(png_ptr);
-  PyObject* flush_method = PyObject_GetAttrString(py_file_obj, "write");
+  PyObject* flush_method = PyObject_GetAttrString(py_file_obj, "flush");
   if (flush_method) {
     PyObject_CallFunction(flush_method, "");
   }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to