Author: gforcada
Date: Fri Jan 18 21:16:34 2008
New Revision: 719
URL: http://svn.gnome.org/viewvc/damned-lies?rev=719&view=rev
Log:
Only show errors in stderr if defaults.DEBUG is set to 1
Modified:
trunk/ChangeLog
trunk/data.py
trunk/update-stats.py
Modified: trunk/data.py
==============================================================================
--- trunk/data.py (original)
+++ trunk/data.py Fri Jan 18 21:16:34 2008
@@ -60,7 +60,8 @@
except:
# ignore if we can't write out picklefile, it will only be
slower
import sys
- print >>sys.stderr, "Warning: can't write out pickle file '%s'
for '%s'. Performance will suffer." % (picklefile, filename)
+ if defaults.DEBUG:
+ print >>sys.stderr, "Warning: can't write out pickle file
'%s' for '%s'. Performance will suffer." % (picklefile, filename)
return dict
Modified: trunk/update-stats.py
==============================================================================
--- trunk/update-stats.py (original)
+++ trunk/update-stats.py Fri Jan 18 21:16:34 2008
@@ -489,7 +489,8 @@
import os.path
incfile = os.path.join(os.path.dirname(file),
os.path.basename(match.group(1)))
if incfile.find("gnome-doc-utils.make")==-1:
- print >>sys.stderr, "Reading file %s..." %
(incfile)
+ if defaults.DEBUG:
+ print >>sys.stderr, "Reading file %s..." %
(incfile)
var = self.read_makefile_variable(incfile,
variable)
if var != "":
return var
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.