diff contrib/check-code.py @ 15873:a153a86a472c

tests: keep track of all check-code.py warnings
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 11 Jan 2012 01:56:05 +0100
parents ec8a49c46d7e
children 2a1d97630f7f
line wrap: on
line diff
--- a/contrib/check-code.py	Fri Jan 13 11:29:53 2012 -0600
+++ b/contrib/check-code.py	Wed Jan 11 01:56:05 2012 +0100
@@ -309,7 +309,7 @@
     :logfunc: function used to report error
               logfunc(filename, linenumber, linecontent, errormessage)
     :maxerr: number of error to display before arborting.
-             Set to None (default) to report all errors
+             Set to false (default) to report all errors
 
     return True if no error is found, False otherwise.
     """
@@ -392,7 +392,7 @@
         for e in errors:
             logfunc(*e)
             fc += 1
-            if maxerr is not None and fc >= maxerr:
+            if maxerr and fc >= maxerr:
                 print " (too many errors, giving up)"
                 break