From a6b679c7fb72e5cf4b847570ed3ed2b3b2f990ac Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 17 Sep 2010 19:18:16 +0200 Subject: [PATCH 1/2] fix minor string typo in imapfetcher --- pyfpdb/ImapFetcher.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/ImapFetcher.py b/pyfpdb/ImapFetcher.py index b666e736..65936282 100755 --- a/pyfpdb/ImapFetcher.py +++ b/pyfpdb/ImapFetcher.py @@ -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 From f540214e174abaddd26ef453c5398d897257621e Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 17 Sep 2010 19:32:50 +0200 Subject: [PATCH 2/2] l10n: missed gettextify in various *ToFpdb files --- pyfpdb/BetfairToFpdb.py | 2 +- pyfpdb/CarbonToFpdb.py | 2 +- pyfpdb/FulltiltToFpdb.py | 2 +- pyfpdb/PokerStarsToFpdb.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/BetfairToFpdb.py b/pyfpdb/BetfairToFpdb.py index a8d510bd..c26cda26 100755 --- a/pyfpdb/BetfairToFpdb.py +++ b/pyfpdb/BetfairToFpdb.py @@ -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') diff --git a/pyfpdb/CarbonToFpdb.py b/pyfpdb/CarbonToFpdb.py index abb29e30..04b420b2 100644 --- a/pyfpdb/CarbonToFpdb.py +++ b/pyfpdb/CarbonToFpdb.py @@ -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') diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index e744addd..129dc5a7 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -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') diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index baa7718b..f4f131d6 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -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())