contrib/check-code.py
changeset 15873 a153a86a472c
parent 15611 ec8a49c46d7e
child 16013 2a1d97630f7f
--- 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