From 4d25fbe118929ff34cf77c0965db7a56d45a4866 Mon Sep 17 00:00:00 2001 From: Rupert Edwards Date: Mon, 4 Jan 2016 01:56:28 -0500 Subject: [PATCH] Updated toriptables2.py Refactor --- toriptables2.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toriptables2.py b/toriptables2.py index 21f2ffc..2b85aa6 100755 --- a/toriptables2.py +++ b/toriptables2.py @@ -46,12 +46,10 @@ DNSPort %s def restart_tor(): fnull = open(devnull, 'w') try: - tor_restart = check_call( - ["service", "tor", "restart"], - stdout=fnull, stderr=fnull) + tor_restart = check_call(["service", "tor", "restart"], + stdout=fnull, stderr=fnull) if tor_restart is 0: - print(" {0}".format( - "[\033[92m+\033[0m] Anonymizer \033[92mON\033[0m")) + print(" {0}".format("[\033[92m+\033[0m] Anonymizer \033[92mON\033[0m")) except CalledProcessError as err: print("\n[!] Command failed: %s" % err.cmd)