Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit 57b0c46

Browse files
committed
remove unused imports
1 parent 349a53f commit 57b0c46

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bwscanner/attacher.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import txtorcon
22
from twisted.internet import defer, reactor, endpoints
3-
from txtorcon.interface import CircuitListenerMixin, IStreamAttacher, StreamListenerMixin
4-
from zope.interface import implementer
53

64
from bwscanner.logger import log
75

bwscanner/fetcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77

88
from bwscanner.logger import log
99

10+
1011
def fetch(tor_state, path, url):
1112
d = tor_state.build_circuit(path, False)
1213
sport = get_tor_socks_endpoint(tor_state)
1314
d.addCallback(lambda c: c.when_built())
1415
d.addCallback(lambda c: c.web_agent(reactor, sport))
1516
return d.addCallback(lambda a: a.request("GET", url))
1617

18+
1719
def get_tor_socks_endpoint(tor_state):
1820
proxy_endpoint = tor_state.protocol.get_conf("SocksPort")
1921

0 commit comments

Comments
 (0)