diff -r e5feebc1f3bb -r a153a86a472c contrib/check-code.py --- 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