From dda88b76ba86e227f8662331af7d9d92e80e84c3 Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Wed, 10 Dec 2008 16:30:57 +0000 Subject: [PATCH 01/13] cosmetics, comments, some value checking added mucked / folded / shown summary lines --- pyfpdb/EverleafToFpdb.py | 25 +---- pyfpdb/HandHistoryConverter.py | 200 +++++++++++++++++++++------------ 2 files changed, 131 insertions(+), 94 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 19253ddc..7eee20a7 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -68,7 +68,7 @@ class Everleaf(HandHistoryConverter): print "Initialising Everleaf converter class" HandHistoryConverter.__init__(self, config, file, sitename="Everleaf") # Call super class init. self.sitename = "Everleaf" - self.setFileType("text") + self.setFileType("text", "cp1252") self.rexx.setGameInfoRegex('.*Blinds \$?(?P[.0-9]+)/\$?(?P[.0-9]+)') self.rexx.setSplitHandRegex('\n\n+') self.rexx.setHandInfoRegex('.*#(?P[0-9]+)\n.*\nBlinds \$?(?P[.0-9]+)/\$?(?P[.0-9]+) (?P.*) - (?P[0-9]+)/(?P[0-9]+)/(?P[0-9]+) - (?P
[0-9]+):(?P[0-9]+):(?P[0-9]+)\nTable (?P[ a-zA-Z]+)\nSeat (?P