[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Add docstring for Bridges.PluggableTransport.getTransportLine().
commit 9e49ce055a3eb7186c81fa9b9fe67f72f2de607c
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Sat Jan 11 20:12:23 2014 +0000
Add docstring for Bridges.PluggableTransport.getTransportLine().
---
lib/bridgedb/Bridges.py | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index 5b07141..58305b8 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -399,8 +399,19 @@ class PluggableTransport:
else: self.argdict = {}
def getTransportLine(self, includeFingerprint=False):
- """
- returns a torrc bridge line for this transport
+ """Get a torrc line for this pluggable transport.
+
+ This method does not return lines which are prefixed with the word
+ 'bridge', as they would be in a torrc file. Instead, lines returned
+ look like this:
+
+ obfs3 245.102.100.252:23619 59ca743e89b508e16b8c7c6d2290efdfd14eea98
+
+ :param bool includeFingerprints: If ``True``, include the digest of
+ this bridges public identity key in the torrc line.
+ :rtype: str
+ :returns: A configuration line for adding this pluggable transport
+ into a torrc file.
"""
if isinstance(self.address,ipaddr.IPv6Address):
address = "[%s]" % self.address
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits