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

12 Jan
2014
12 Jan
'14
6:06 a.m.
commit 35bd1278cd600dd673d07ab8f1c0f3a2f0dc36fe Author: Isis Lovecruft <isis@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:
4191
Age (days ago)
4191
Last active (days ago)
0 comments
1 participants
participants (1)
-
isis@torproject.org