def calculator(self, getmebaby): self.cacheinfo = self.count() if self.cacheinfo <= 10000000: self.lastone = "Now" self.startime = datetime.now() self.bruteforce(warehouse( self.mybrutefile, self.type)) else: #Happiest idea of my life :) data = put( self.mybrutefile) cout = self.cacheinfo/10000000 cout += (self.cacheinfo%10000000)+1 self.startime = datetime.now() for x in xrange(1, cout): mylist = [] for x,y in enumerate(data): mylist.append(y.strip()) if x == 9999999: break self.bruteforce(warehouse( "Default", self.type, mylist)) del mylist
def count(self): return sum(1 for x in put( self.mybrutefile))