Missing run() from pydoc

Ok, that was dumb. The whole point of my minor doc adjustment was to call
run()! Stupid me.

  https://trac.torproject.org/projects/tor/ticket/28400

Ran this demo both successfully and with an exception hardcoded in run() to
ensure I didn't bugger it up again. :P
This commit is contained in:
Damian Johnson 2018-11-16 09:30:00 -08:00
parent 5d3565002b
commit 3768e1e922

View File

@ -227,7 +227,7 @@ class Query(object):
print('Current relays:')
try:
for desc in Query('/tor/server/all', 'server-descriptor 1.0'):
for desc in Query('/tor/server/all', 'server-descriptor 1.0').run():
print(desc.fingerprint)
except Exception as exc:
print('Unable to retrieve the server descriptors: %s' % exc)