File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
# running main functions
2
2
3
3
import os
4
- import shutil
5
4
import signal
6
5
import subprocess
7
6
import sys
8
- import time
9
7
import argparse
10
- import stem .socket
11
- import stem .connection
12
8
from stem .control import Controller
13
9
from importlib .metadata import version
14
10
from tornado .core import logger
@@ -110,7 +106,7 @@ def configure(self):
110
106
logger .goodt ('ControlPort is ready.' )
111
107
except :
112
108
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:' )
114
110
logger .warnt ("""sudo bash -c 'echo "ControlPort 9051" >> /etc/tor/torrc'""" )
115
111
os .system ('sudo service tor stop' )
116
112
os .kill (int (subprocess .check_output (["pidof" , "tor" ])), signal .SIGTERM )
You can’t perform that action at this time.
0 commit comments