aboutsummaryrefslogtreecommitdiffstats
path: root/miss_htbt_service/mod/trapd_exit.py
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2022-08-19 12:56:56 +0000
committerHansen, Tony (th1395) <th1395@att.com>2022-08-19 12:57:10 +0000
commitdac22d93c804780f2dc20164aeb44fc80a30890d (patch)
tree7bd19b04ffa5e8fb049068d9de79778eeed140de /miss_htbt_service/mod/trapd_exit.py
parent554b15356ef100a3617f7f5415f6a35ac2b3ebba (diff)
lots of cleanup, no functional code changes
Change-Id: I9eefe4d34ae226bbd5a6f80422f89baeeaeb3471 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: DCAEGEN2-2837
Diffstat (limited to 'miss_htbt_service/mod/trapd_exit.py')
-rw-r--r--miss_htbt_service/mod/trapd_exit.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/miss_htbt_service/mod/trapd_exit.py b/miss_htbt_service/mod/trapd_exit.py
index aae12bb..7791b31 100644
--- a/miss_htbt_service/mod/trapd_exit.py
+++ b/miss_htbt_service/mod/trapd_exit.py
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (c) 2017-2021 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2017-2022 AT&T Intellectual Property. All rights reserved.
# Copyright (c) 2019 Pantheon.tech. All rights reserved.
# Copyright (c) 2020 Deutsche Telekom. All rights reserved.
# ================================================================================
@@ -25,8 +25,7 @@ __docformat__ = "restructuredtext"
import sys
import os
-import string
-from mod.trapd_runtime_pid import save_pid, rm_pid
+from mod.trapd_runtime_pid import rm_pid
prog_name = os.path.basename(__file__)
@@ -57,7 +56,7 @@ def cleanup_and_exit(_loc_exit_code, _pid_file_name):
# _num_params = len(locals())
if _pid_file_name is not None:
- rc = rm_pid(_pid_file_name)
+ rm_pid(_pid_file_name)
sys.exit(_loc_exit_code)
@@ -87,4 +86,4 @@ def cleanup(_loc_exit_code, _pid_file_name):
# _num_params = len(locals())
if _pid_file_name is not None:
- rc = rm_pid(_pid_file_name)
+ rm_pid(_pid_file_name)