Show More
@@ -622,7 +622,7 def checkfile(f, logfunc=_defaultlogger. | |||||
622 |
|
622 | |||
623 | return result |
|
623 | return result | |
624 |
|
624 | |||
625 | if __name__ == "__main__": |
|
625 | def main(): | |
626 | parser = optparse.OptionParser("%prog [options] [files]") |
|
626 | parser = optparse.OptionParser("%prog [options] [files]") | |
627 | parser.add_option("-w", "--warnings", action="store_true", |
|
627 | parser.add_option("-w", "--warnings", action="store_true", | |
628 | help="include warning-level checks") |
|
628 | help="include warning-level checks") | |
@@ -650,4 +650,7 if __name__ == "__main__": | |||||
650 | blame=options.blame, debug=options.debug, |
|
650 | blame=options.blame, debug=options.debug, | |
651 | lineno=options.lineno): |
|
651 | lineno=options.lineno): | |
652 | ret = 1 |
|
652 | ret = 1 | |
653 | sys.exit(ret) |
|
653 | return ret | |
|
654 | ||||
|
655 | if __name__ == "__main__": | |||
|
656 | sys.exit(main()) |
General Comments 0
You need to be logged in to leave comments.
Login now