From 23a4ca34c8a6ecd54b9fba5617856fc0e0c90a1c Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 3 Jul 2009 20:41:08 -0400 Subject: [PATCH] Fix bug preventing some shown cards from being read. --- pyfpdb/PokerStarsToFpdb.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 8719a8c0..75609001 100755 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -66,8 +66,7 @@ follow : whether to tail -f the input""" self.re_ShowdownAction = re.compile(r"^%s: shows \[(?P.*)\]" % player_re, re.MULTILINE) self.re_CollectPot = re.compile(r"Seat (?P[0-9]+): %s (\(button\) |\(small blind\) |\(big blind\) )?(collected|showed \[.*\] and won) \(\$(?P[.\d]+)\)(, mucked| with.*|)" % player_re, re.MULTILINE) self.re_sitsOut = re.compile("^%s sits out" % player_re, re.MULTILINE) - self.re_ShownCards = re.compile("^Seat (?P[0-9]+): %s \(.*\) (?Pshowed|mucked) \[(?P.*)\].*" % player_re, re.MULTILINE) - + self.re_ShownCards = re.compile("^Seat (?P[0-9]+): %s (\(.*\) )?(?Pshowed|mucked) \[(?P.*)\].*" % player_re, re.MULTILINE) def readSupportedGames(self): return [["ring", "hold", "nl"], @@ -317,7 +316,6 @@ follow : whether to tail -f the input""" def readShownCards(self,hand): for m in self.re_ShownCards.finditer(hand.handText): if m.group('CARDS') is not None: - print "SHOWED", m.group('SHOWED') cards = m.group('CARDS') cards = set(cards.split(' '))