From 946584497b34f443c158f82374b86bc404e44458 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 18 Apr 2018 01:43:24 +0000 Subject: [PATCH] Remove unneeded assignment Signed-off-by: Yong Tang --- tensorflow/python/debug/wrappers/grpc_wrapper.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tensorflow/python/debug/wrappers/grpc_wrapper.py b/tensorflow/python/debug/wrappers/grpc_wrapper.py index 94acdfd..0001560 100644 --- a/tensorflow/python/debug/wrappers/grpc_wrapper.py +++ b/tensorflow/python/debug/wrappers/grpc_wrapper.py @@ -142,10 +142,8 @@ class GrpcDebugWrapperSession(framework.NonInteractiveDebugWrapperSession): def _signal_handler(unused_signal, unused_frame): - input_func = six.moves.input - while True: - response = input_func("\nSIGINT received. Quit program? (Y/n): ").strip() + response = six.moves.input("\nSIGINT received. Quit program? (Y/n): ").strip() if response in ("", "Y", "y"): sys.exit(0) elif response in ("N", "n"): -- 2.7.4