From 79308f204b3c91c3b2175cb1609e95bd636e6917 Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Tue, 27 Mar 2018 08:36:52 -0400 Subject: [PATCH] stdout instead of print. --- killstream/ip_whitelist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/killstream/ip_whitelist.py b/killstream/ip_whitelist.py index 23ba7ac..1cca440 100644 --- a/killstream/ip_whitelist.py +++ b/killstream/ip_whitelist.py @@ -86,6 +86,6 @@ if ip_address not in IP_WHITELIST: session.stop(reason=REASON.format(ip_address)) send_notification(SUBJECT_TEXT, BODY_TEXT.format(user=username, ip=ip_address, title=title)) else: - print('User: {} is ignored from this script.'.format(username)) + sys.stdout.write('User: {} is ignored from this script.'.format(username)) else: - print('IP: {} is in whitelist, ignoring.'.format(ip_address)) \ No newline at end of file + sys.stdout.write('IP: {} is in whitelist, ignoring.'.format(ip_address)) \ No newline at end of file