[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Missing run() from pydoc



commit 3768e1e922adf3aa7da9468d98529f8f7e01ba79
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Fri Nov 16 09:30:00 2018 -0800

    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
---
 stem/descriptor/remote.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py
index 4ec83199..91a3bad2 100644
--- a/stem/descriptor/remote.py
+++ b/stem/descriptor/remote.py
@@ -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)

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits