Browse Source

Leave one of the exits due to entry point usage

Steven Myint 11 years ago
parent
commit
edc68b7c95
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/cdiff.py

+ 3
- 3
src/cdiff.py View File

541
             sys.stderr.write(('*** Not in a supported workspace, supported '
541
             sys.stderr.write(('*** Not in a supported workspace, supported '
542
                               'are: %s\n\n') % ', '.join(supported_vcs))
542
                               'are: %s\n\n') % ', '.join(supported_vcs))
543
             parser.print_help()
543
             parser.print_help()
544
-            return 1
544
+            sys.exit(1)
545
     else:
545
     else:
546
         diff_hdl = sys.stdin
546
         diff_hdl = sys.stdin
547
 
547
 
550
 
550
 
551
     # Don't let empty diff pass thru
551
     # Don't let empty diff pass thru
552
     if not stream:
552
     if not stream:
553
-        return 0
553
+        return
554
 
554
 
555
     if diff_hdl is not sys.stdin:
555
     if diff_hdl is not sys.stdin:
556
         diff_hdl.close()
556
         diff_hdl.close()
568
 
568
 
569
 
569
 
570
 if __name__ == '__main__':
570
 if __name__ == '__main__':
571
-    sys.exit(main())
571
+    main()
572
 
572
 
573
 # vim:set et sts=4 sw=4 tw=80:
573
 # vim:set et sts=4 sw=4 tw=80: