[cairo-commit]
pycairo/examples/cairo_snippets snippets_png.py, 1.5, 1.6
Steve Chaplin
commit at pdx.freedesktop.org
Wed May 4 18:35:15 PDT 2005
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/cairo_snippets
In directory gabe:/tmp/cvs-serv18950/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.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- snippets_png.py 27 Apr 2005 07:34:50 -0000 1.5
+++ snippets_png.py 5 May 2005 01:35:13 -0000 1.6
@@ -26,11 +26,10 @@
execfile ('snippets/%s.py' % snippet, globals(), locals())
except:
exc_type, exc_value = sys.exc_info()[:2]
- print exc_type, exc_value
-
- cr.restore()
-
- surface.write_to_png ('snippets/%s.png' % snippet)
+ print >> sys.stderr, exc_type, exc_value
+ else:
+ cr.restore()
+ surface.write_to_png ('snippets/%s.png' % snippet)
if Verbose_mode:
print
More information about the cairo-commit
mailing list