[tor-commits] [bridgedb/master] Fix docstring context for bridgedb.Dist.uniformMap().

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:35 UTC 2014


commit 35bd1278cd600dd673d07ab8f1c0f3a2f0dc36fe
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri Dec 20 06:59:49 2013 +0000

    Fix docstring context for bridgedb.Dist.uniformMap().
---
 lib/bridgedb/Dist.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/Dist.py b/lib/bridgedb/Dist.py
index cd34dcb..706873f 100644
--- a/lib/bridgedb/Dist.py
+++ b/lib/bridgedb/Dist.py
@@ -24,7 +24,8 @@ def uniformMap(ip):
     """Map an IP to an arbitrary 'area' string, such that any two /24 addresses
        get the same string.
 
-    >>> uniformMap('1.2.3.4')
+    >>> from bridgedb import Dist
+    >>> Dist.uniformMap('1.2.3.4')
     '1.2.3'
     """
     if type(IPAddress(ip)) is IPv6Address:





More information about the tor-commits mailing list