contrib/check-code.py
changeset 14136 eebf196a8bbe
parent 14135 673abd432104
child 14137 83a94c2fe6f4
equal deleted inserted replaced
14135:673abd432104 14136:eebf196a8bbe
   312                     fc += 1
   312                     fc += 1
   313                     result = False
   313                     result = False
   314             if maxerr is not None and fc >= maxerr:
   314             if maxerr is not None and fc >= maxerr:
   315                 print " (too many errors, giving up)"
   315                 print " (too many errors, giving up)"
   316                 break
   316                 break
   317         break
       
   318     return result
   317     return result
   319 
   318 
   320 if __name__ == "__main__":
   319 if __name__ == "__main__":
   321     parser = optparse.OptionParser("%prog [options] [files]")
   320     parser = optparse.OptionParser("%prog [options] [files]")
   322     parser.add_option("-w", "--warnings", action="store_true",
   321     parser.add_option("-w", "--warnings", action="store_true",