Working on PS HORSE file now..

This commit is contained in:
Matt Turnbull 2009-07-15 00:26:53 +01:00
parent 79ca83c95a
commit 35a5cffb77
2 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ from xml.dom.minidom import Node
import time
import datetime
#import gettext
#gettext.install('fpdb')
import gettext
gettext.install('fpdb')
class HandHistoryConverter():

View File

@ -298,7 +298,7 @@ follow : whether to tail -f the input"""
hand.addHoleCards(street, hand.hero, closed=newcards, shown=False, mucked=False, dealt=True)
for street, text in hand.streets.iteritems():
if street in ('PREFLOP', 'DEAL'): continue # already done these
if not text or street in ('PREFLOP', 'DEAL'): continue # already done these
m = self.re_HeroCards.finditer(hand.streets[street])
for found in m:
player = found.group('PNAME')