PY-29471 Remove propagating of exit code in packaging_tool.py altogether

since the only place where it was actually used is launching pip, and
the latter terminates the process with sys.exit() itself now thanks to
runpy.run_module().
This commit is contained in:
Mikhail Golubev
2018-04-23 15:09:13 +03:00
parent 36ef0a744e
commit d77d0ac5c4

View File

@@ -101,7 +101,6 @@ def do_untar(name):
sys.stdout.write(directory_name+chr(10))
sys.stdout.flush()
return 0
def mkdtemp_ifneeded():
@@ -127,7 +126,6 @@ def main():
except ValueError:
pass
retcode = 0
try:
if len(sys.argv) < 2:
usage()
@@ -154,7 +152,7 @@ def main():
if len(sys.argv) < 2:
usage()
name = sys.argv[2]
retcode = do_untar(name)
do_untar(name)
elif cmd == 'uninstall':
if len(sys.argv) < 2:
usage()
@@ -175,7 +173,7 @@ def main():
except Exception:
traceback.print_exc()
exit(ERROR_EXCEPTION)
exit(retcode)
if __name__ == '__main__':
main()