Merge branch 'master' of git://git.assembla.com/fpdb.git

This commit is contained in:
Eric Blade 2010-09-18 02:36:17 -04:00
commit 232903bfe8
5 changed files with 8 additions and 8 deletions

View File

@ -115,7 +115,7 @@ class Betfair(HandHistoryConverter):
m = self.re_HandInfo.search(hand.handText)
if(m == None):
log.error(_("Didn't match re_HandInfo"))
raise FpdbParseError("No match in readHandInfo.")
raise FpdbParseError(_("No match in readHandInfo."))
print "DEBUG: got this far!"
logging.debug("HID %s, Table %s" % (m.group('HID'), m.group('TABLE')))
hand.handid = m.group('HID')

View File

@ -170,7 +170,7 @@ or None if we fail to get the info """
if m is None:
logging.info(_("Didn't match re_HandInfo"))
logging.info(hand.handText)
raise FpdbParseError("No match in readHandInfo.")
raise FpdbParseError(_("No match in readHandInfo."))
logging.debug("HID %s-%s, Table %s" % (m.group('HID1'),
m.group('HID2'), m.group('TABLE')[:-1]))
hand.handid = m.group('HID1') + m.group('HID2')

View File

@ -223,7 +223,7 @@ class Fulltilt(HandHistoryConverter):
if m is None:
logging.info(_("Didn't match re_HandInfo"))
logging.info(hand.handText)
raise FpdbParseError("No match in readHandInfo.")
raise FpdbParseError(_("No match in readHandInfo."))
hand.handid = m.group('HID')
hand.tablename = m.group('TABLE')

View File

@ -45,21 +45,21 @@ else:
except IOError:
def _(string): return string
def splitPokerStarsSummaries(summaryText):
def splitPokerStarsSummaries(summaryText): #TODO: this needs to go to PSS.py
re_SplitTourneys = PokerStarsSummary.PokerStarsSummary.re_SplitTourneys
splitSummaries = re.split(re_SplitTourneys, summaryText)
if len(splitSummaries) <= 1:
print _("DEBUG: re_SplitTourneyss isn't matching")
print _("DEBUG: re_SplitTourneys isn't matching")
return splitSummaries
def splitFullTiltSummaries(summaryText):
def splitFullTiltSummaries(summaryText):#TODO: this needs to go to FTPS.py
re_SplitTourneys = FullTiltPokerSummary.FullTiltPokerSummary.re_SplitTourneys
splitSummaries = re.split(re_SplitTourneys, summaryText)
if len(splitSummaries) <= 1:
print _("DEBUG: re_SplitTourneyss isn't matching")
print _("DEBUG: re_SplitTourneys isn't matching")
return splitSummaries

View File

@ -222,7 +222,7 @@ class PokerStars(HandHistoryConverter):
m2 = self.re_GameInfo.search(hand.handText)
if m is None or m2 is None:
log.error("Didn't match re_HandInfo")
raise FpdbParseError("No match in readHandInfo.")
raise FpdbParseError(_("No match in readHandInfo."))
info.update(m.groupdict())
info.update(m2.groupdict())