From 52ecc6450518281603e5e5adb4168216a6086529 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 17 Jul 2009 17:07:53 -0400 Subject: [PATCH] Update to work with recent Hand.py changes. --- pyfpdb/FulltiltToFpdb.py | 135 +++++++++++++++++---------------------- 1 file changed, 57 insertions(+), 78 deletions(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index f7b834a6..d9cc490d 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -27,10 +27,22 @@ from HandHistoryConverter import * class Fulltilt(HandHistoryConverter): # Static regexes - re_GameInfo = re.compile('- (?P\$|)?(?P[.0-9]+)/\$?(?P[.0-9]+) (Ante \$(?P[.0-9]+) )?- (?P(No Limit|Pot Limit|Limit))? (?P(Hold\'em|Omaha Hi|Razz))') + re_GameInfo = re.compile('''-\s(?P\$|)? + (?P[.0-9]+)/ + \$?(?P[.0-9]+)\s + (Ante\s\$(?P[.0-9]+)\s)?-\s + (?P(No\sLimit|Pot\sLimit|Limit))?\s + (?P(Hold\'em|Omaha\sHi|Omaha\sH/L|7\sCard\sStud|Stud\sH/L|Razz)) + ''', re.VERBOSE) re_SplitHands = re.compile(r"\n\n+") re_TailSplitHands = re.compile(r"(\n\n+)") - re_HandInfo = re.compile('.*#(?P[0-9]+): Table (?P[- a-zA-Z]+) (\((?P.+)\) )?- \$?(?P[.0-9]+)/\$?(?P[.0-9]+) (Ante \$(?P[.0-9]+) )?- (?P[a-zA-Z\' ]+) - (?P.*)') + re_HandInfo = re.compile('''.*\#(?P[0-9]+):\s + Table\s(?P
[-\sa-zA-Z]+)\s + (\((?P.+)\)\s)?-\s + \$?(?P[.0-9]+)/\$?(?P[.0-9]+)\s(Ante\s\$(?P[.0-9]+)\s)?-\s + (?P[a-zA-Z\/\'\s]+)\s-\s + (?P.*) + ''', re.VERBOSE) re_Button = re.compile('^The button is in seat #(?P