From 9e13930742ebb4645b5b4f11b4f561b40b007aac Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 28 Sep 2010 12:04:40 +0800 Subject: [PATCH] Hand: Whitespace changes from Forrest --- pyfpdb/Hand.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 7c35c85c..6d780aa2 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -71,7 +71,7 @@ class Hand(object): self.maxseats = None self.counted_seats = 0 self.buttonpos = 0 - + #tourney stuff self.tourNo = None self.tourneyId = None @@ -97,7 +97,7 @@ class Hand(object): self.players = [] self.posted = [] self.tourneysPlayersIds = [] - + # Collections indexed by street names self.bets = {} self.lastBet = {} @@ -232,7 +232,7 @@ dealt whether they were seen in a 'dealt to' line #Gametypes self.dbid_gt = db.getGameTypeId(self.siteId, self.gametype) - + if self.tourNo!=None: self.tourneyTypeId = db.createTourneyType(self) db.commit() @@ -355,7 +355,7 @@ For sites (currently only Carbon Poker) which record "all in" as a special actio # self.pot.addMoney(player, Decimal(ante)) self.pot.addCommonMoney(player, Decimal(ante)) #I think the antes should be common money, don't have enough hand history to check - + def addBlind(self, player, blindtype, amount): # if player is None, it's a missing small blind. # The situation we need to cover are: @@ -375,7 +375,7 @@ For sites (currently only Carbon Poker) which record "all in" as a special actio if blindtype == 'both': # work with the real amount. limit games are listed as $1, $2, where # the SB 0.50 and the BB is $1, after the turn the minimum bet amount is $2.... - amount = self.bb + amount = self.bb self.bets['BLINDSANTES'][player].append(Decimal(self.sb)) self.pot.addCommonMoney(player, Decimal(self.sb)) @@ -544,7 +544,7 @@ Card ranks will be uppercased self.totalcollected = 0; #self.collected looks like [[p1,amount][px,amount]] for entry in self.collected: - self.totalcollected += Decimal(entry[1]) + self.totalcollected += Decimal(entry[1]) def getGameTypeAsString(self): """\ @@ -684,12 +684,12 @@ class HoldemOmahaHand(Hand): hhc.readPlayerStacks(self) hhc.compilePlayerRegexs(self) hhc.markStreets(self) - + if self.cancelled: return - + hhc.readBlinds(self) - + hhc.readAntes(self) hhc.readButton(self) hhc.readHeroCards(self) @@ -1486,7 +1486,7 @@ class Pot(object): # Return any uncalled bet. committed = sorted([ (v,k) for (k,v) in self.committed.items()]) #print "DEBUG: committed: %s" % committed - #ERROR below. lastbet is correct in most cases, but wrong when + #ERROR below. lastbet is correct in most cases, but wrong when # additional money is committed to the pot in cash games # due to an additional sb being posted. (Speculate that # posting sb+bb is also potentially wrong)