From 3b94bd45406f9d457d37caa10c856a19c4cec22a Mon Sep 17 00:00:00 2001
From: Mingyu Li
Date: Sun, 7 Feb 2016 21:41:08 +0800
Subject: [PATCH] Keep the Usage of exit()/sys.exit() Consistent
It's better to keep the usage of exit()/sys.exit() consistent
in one file. Furthermore, sys.exit() is considered good to be
used in production code, while exit is for interactive shell.
Change-Id: Ia3092853a648922588e2bc11db37d6decdec1b48
---
bin/swift-oldies | 2 +-
bin/swift-orphans | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/swift-oldies b/bin/swift-oldies
index 46263ab95d..74854d78d8 100755
--- a/bin/swift-oldies
+++ b/bin/swift-oldies
@@ -59,7 +59,7 @@ Lists old Swift processes.
listing.append((str(hours), pid, args))
if not listing:
- exit()
+ sys.exit()
hours_len = len('Hours')
pid_len = len('PID')
diff --git a/bin/swift-orphans b/bin/swift-orphans
index d6cf2d0801..90311c9816 100755
--- a/bin/swift-orphans
+++ b/bin/swift-orphans
@@ -93,7 +93,7 @@ Example (sends SIGTERM to all orphaned Swift processes older than two hours):
listing.append((str(hours), pid, args))
if not listing:
- exit()
+ sys.exit()
hours_len = len('Hours')
pid_len = len('PID')