[cairo-commit] pycairo/examples/cairo_snippets snippets_png.py, 1.3, 1.4

Steve Chaplin commit at pdx.freedesktop.org
Tue Apr 26 20:54:04 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples/cairo_snippets
In directory gabe:/tmp/cvs-serv7835/examples/cairo_snippets

Modified Files:
	snippets_png.py 
Log Message:
SC

Index: snippets_png.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets_png.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- snippets_png.py	14 Apr 2005 12:05:26 -0000	1.3
+++ snippets_png.py	27 Apr 2005 03:54:02 -0000	1.4
@@ -29,9 +29,7 @@
     
     cr.restore()
 
-    file_obj = file('snippets/%s.png' % snippet, 'wb')
-    surface.write_png (file_obj)
-    file_obj.close()
+    surface.write_to_png ('snippets/%s.png' % snippet)
 
     if Verbose_mode:
         print




More information about the cairo-commit mailing list