commit 92d395c8515e72e9c9b9b89d9e84512419f51aa4 Author: Damian Johnson atagar@torproject.org Date: Tue Mar 12 06:55:22 2013 -0700
Tutorials still referenced a control_port arg
Oops. When updating the tutorial tests I guess that I forgot to update the examples. :( --- docs/tutorial/mirror_mirror_on_the_wall.rst | 4 ++-- docs/tutorial/the_little_relay_that_could.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/tutorial/mirror_mirror_on_the_wall.rst b/docs/tutorial/mirror_mirror_on_the_wall.rst index 617d898..1a7f81d 100644 --- a/docs/tutorial/mirror_mirror_on_the_wall.rst +++ b/docs/tutorial/mirror_mirror_on_the_wall.rst @@ -75,7 +75,7 @@ through tor's control socket...
from stem.control import Controller
- with Controller.from_port(control_port = 9051) as controller: + with Controller.from_port(port = 9051) as controller: controller.authenticate()
for desc in controller.get_network_statuses(): @@ -135,7 +135,7 @@ this to work. def get_bw_to_relay(): bw_to_relay = {}
- with Controller.from_port(control_port = 9051) as controller: + with Controller.from_port(port = 9051) as controller: controller.authenticate()
for desc in controller.get_server_descriptors(): diff --git a/docs/tutorial/the_little_relay_that_could.rst b/docs/tutorial/the_little_relay_that_could.rst index 96216d1..4f22b5b 100644 --- a/docs/tutorial/the_little_relay_that_could.rst +++ b/docs/tutorial/the_little_relay_that_could.rst @@ -48,7 +48,7 @@ many bytes Tor has sent and received...
from stem.control import Controller
- with Controller.from_port(control_port = 9051) as controller: + with Controller.from_port(port = 9051) as controller: controller.authenticate() # provide the password here if you set one
bytes_read = controller.get_info("traffic/read")
tor-commits@lists.torproject.org