Uncomment the new lines to calculate some stats.

This commit is contained in:
Ray 2009-08-05 19:11:46 -04:00
parent 3d1f02a627
commit 74d64eca9b

View File

@ -60,7 +60,7 @@ class HandHistoryConverter():
out_dir = os.path.dirname(self.out_path)
if not os.path.isdir(out_dir):
logging.info("Creatin directory '%s'" % out_dir)
os.makedirs(out_dir)
# os.makedirs(out_dir)
self.out_fh = open(self.out_path, 'w')
self.sitename = sitename
@ -204,7 +204,9 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py.
logging.info("Unsupported game type: %s" % gametype)
if hand:
# uncomment these to calculate some stats
# print hand
# hand.stats.getStats(hand)
hand.writeHand(self.out_fh)
return hand
else: