Show More
@@ -622,7 +622,7 b' def checkfile(f, logfunc=_defaultlogger.' | |||
|
622 | 622 | |
|
623 | 623 | return result |
|
624 | 624 | |
|
625 | if __name__ == "__main__": | |
|
625 | def main(): | |
|
626 | 626 | parser = optparse.OptionParser("%prog [options] [files]") |
|
627 | 627 | parser.add_option("-w", "--warnings", action="store_true", |
|
628 | 628 | help="include warning-level checks") |
@@ -650,4 +650,7 b' if __name__ == "__main__":' | |||
|
650 | 650 | blame=options.blame, debug=options.debug, |
|
651 | 651 | lineno=options.lineno): |
|
652 | 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