Rev 15: Clean up whitespace in http://bzr.arbash-meinel.com/plugins/pybloom

John Arbash Meinel john at arbash-meinel.com
Tue Mar 27 16:56:32 BST 2007


At http://bzr.arbash-meinel.com/plugins/pybloom

------------------------------------------------------------
revno: 15
revision-id: john at arbash-meinel.com-20070327155625-wgd4n7i3ckrzeyyi
parent: john at arbash-meinel.com-20061019162902-cbc4f4bb0ee8bcd3
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: pybloom
timestamp: Tue 2007-03-27 10:56:25 -0500
message:
  Clean up whitespace
modified:
  bench_pybloom.py               bench_pybloom.py-20061017144544-ftslrsn8h5s8fsfx-1
  pybloom.py                     pybloom.py-20061013005844-b3v176fajvw2xeip-1
  test_pybloom.py                test_pybloom.py-20061015235457-3ygcmfqjet8yfq0f-2
-------------- next part --------------
=== modified file 'bench_pybloom.py'
--- a/bench_pybloom.py	2006-10-17 23:46:55 +0000
+++ b/bench_pybloom.py	2007-03-27 15:56:25 +0000
@@ -129,30 +129,30 @@
 
 
 class BenchBloomMD5(benchmarks.Benchmark, BenchPyBloomMixin):
-    
+
     def get_bloom(self, num_bits):
         return pybloom.BloomMD5(num_bits)
 
 
 class BenchBloomSHA1(benchmarks.Benchmark, BenchPyBloomMixin):
-    
+
     def get_bloom(self, num_bits):
         return pybloom.BloomSHA1(num_bits)
 
 
 class BenchOrigBloom4Hash(benchmarks.Benchmark, BenchPyBloomMixin):
-    
+
     def get_bloom(self, num_bits):
         return pybloom.OrigBloom(num_bits//8, 4)
 
 
 class BenchOrigBloom5Hash(benchmarks.Benchmark, BenchPyBloomMixin):
-    
+
     def get_bloom(self, num_bits):
         return pybloom.OrigBloom(num_bits//8, 5)
 
 
 class BenchOrigBloom7Hash(benchmarks.Benchmark, BenchPyBloomMixin):
-    
+
     def get_bloom(self, num_bits):
         return pybloom.OrigBloom(num_bits//8, 7)

=== modified file 'pybloom.py'
--- a/pybloom.py	2006-10-19 16:29:02 +0000
+++ b/pybloom.py	2007-03-27 15:56:25 +0000
@@ -24,7 +24,7 @@
 # I ask and expect, but do not require, that you contribute any bug fixes and strongly
 # related additional features back to me with the same license.
 
-"""Bloom filters in Python.  
+"""Bloom filters in Python.
 
 Adapted from public domain code writted by: Adam Langley <agl at imperialviolet.org>
 For more information about bloom filters see:
@@ -298,7 +298,7 @@
         return [h & self._bitmask for h in struct.unpack('5i', hash_val)]
 
 
-# This was the original implementation by 
+# This was the original implementation by
 # Adam Langley <agl at imperialviolet.org>
 # It only supported integers, so we use hash(str) to support strings
 mixarray = array.array('B', '\x00' * 256)

=== modified file 'test_pybloom.py'
--- a/test_pybloom.py	2006-10-18 15:40:26 +0000
+++ b/test_pybloom.py	2007-03-27 15:56:25 +0000
@@ -173,7 +173,7 @@
             return
         bloom = self.bloom_class(128)
         bloom.insert_many(['', 'a', 'b', 'c'])
-        
+
         as_base32 = bloom.array_to_base32()
 
         self.assertEqual(32, len(as_base32))
@@ -183,7 +183,7 @@
             return
         bloom = self.bloom_class(128)
         bloom.insert_many(['', 'a', 'b', 'c'])
-        
+
         # From the base64 representation, we should be able to decode, and get
         # the same bytes as exist in the internal array.
         as_base64 = bloom.array_to_base64()



More information about the bazaar-commits mailing list