[tor-commits] [bridgedb/develop] Remove unused function Bridges.chopString().

isis at torproject.org isis at torproject.org
Wed Apr 23 07:59:24 UTC 2014


commit 52a7e1830e6ee05f411e0e84ae8569e35afe5556
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Apr 23 07:44:43 2014 +0000

    Remove unused function Bridges.chopString().
---
 lib/bridgedb/Bridges.py |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index 3ed1eff..fce9943 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -89,12 +89,6 @@ def is_valid_fingerprint(fp):
 toHex = binascii.b2a_hex
 fromHex = binascii.a2b_hex
 
-def chopString(s, size):
-    """Generator. Given a string and a length, divide the string into pieces
-       of no more than that length.
-    """
-    for pos in xrange(0, len(s), size):
-        yield s[pos:pos+size]
 
 class Bridge(object):
     """Holds information for a single bridge





More information about the tor-commits mailing list