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

[tor-commits] [chutney/master] TorNet: Improve some nodes path comments



commit a9dc45fd151513aa7374cea929c51cf774a0b9e2
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Thu Apr 2 19:31:38 2020 +1000

    TorNet: Improve some nodes path comments
---
 lib/chutney/TorNet.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index b2fde0c..7a5c3df 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -177,9 +177,11 @@ def get_absolute_nodes_path():
        "nodes*" directory that chutney should use to store the current
        network's torrcs and tor runtime data.
 
+       This path is also used as a prefix for the unique nodes directory
+       names.
+
        See get_new_absolute_nodes_path() for more details.
     """
-    # there's no way to customise this: we really don't need more options
     return os.path.join(get_absolute_net_path(), 'nodes')
 
 def get_new_absolute_nodes_path(now=time.time()):
@@ -2051,7 +2053,8 @@ class Network(object):
         # if this path exists, it must be a link
         if os.path.exists(nodeslink) and not os.path.islink(nodeslink):
             raise RuntimeError(
-                'get_absolute_nodes_path returned a path that exists and is not a link')
+                'get_absolute_nodes_path returned a path that exists and '
+                'is not a link')
 
         # create the new, uniquely named directory, and link it to nodes
         print("NOTE: creating %r, linking to %r" % (newnodesdir, nodeslink))



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