Selaa lähdekoodia

Lots of pep8-related chanages

dstromberg 14 vuotta sitten
vanhempi
commit
8c60462a85
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      bloom_filter_mod.py

+ 2 - 0
bloom_filter_mod.py

@@ -11,6 +11,7 @@ import math
 import array
 import random
 
+
 def get_probes(bfilter, key):
 	'''Generate a bunch of fast hash functions'''
 	hasher = random.Random(key).randrange
@@ -19,6 +20,7 @@ def get_probes(bfilter, key):
 		bit_index = hasher(32)
 		yield array_index, 1 << bit_index
 
+
 class Bloom_filter:
 	'''Probabilistic set membership testing for large sets'''