Skip to content

Commit 11dcbe5

Browse files
authoredSep 3, 2022
Update __main__.py
1 parent 0376a82 commit 11dcbe5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎tornado/__main__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# running main functions
22

33
import os
4-
import shutil
54
import signal
65
import subprocess
76
import sys
8-
import time
97
import argparse
10-
import stem.socket
11-
import stem.connection
128
from stem.control import Controller
139
from importlib.metadata import version
1410
from tornado.core import logger
@@ -110,7 +106,7 @@ def configure(self):
110106
logger.goodt('ControlPort is ready.')
111107
except:
112108
logger.errort('ControlPort is not set')
113-
logger.errort(f'Try to add ControlPort 9051 to Tor configuration file at /etc/tor/torrc with command:')
109+
logger.errort('Try to add ControlPort 9051 to Tor configuration file at /etc/tor/torrc with command:')
114110
logger.warnt("""sudo bash -c 'echo "ControlPort 9051" >> /etc/tor/torrc'""")
115111
os.system('sudo service tor stop')
116112
os.kill(int(subprocess.check_output(["pidof", "tor"])), signal.SIGTERM)

0 commit comments

Comments
 (0)
Please sign in to comment.