From 09350e8f5282b9d9046176e2544f3fea5c7aa997 Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Fri, 28 Aug 2009 01:22:08 +0100 Subject: [PATCH] Database.py - need os. Hand.py - encoding, and writeHTML doesn't need fh --- pyfpdb/Database.py | 1 + pyfpdb/Hand.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index a097fdca..0cbafbd1 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -24,6 +24,7 @@ Create and manage the database objects. # postmaster -D /var/lib/pgsql/data # Standard Library modules +import os import sys import traceback from datetime import datetime, date, time, timedelta diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 2c5045a2..68274f45 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- #Copyright 2008 Carl Gherardi #This program is free software: you can redistribute it and/or modify @@ -677,7 +678,7 @@ class HoldemOmahaHand(Hand): self.addHoleCards('PREFLOP', player, open=[], closed=cards, shown=shown, mucked=mucked, dealt=dealt) - def writeHTMLHand(self, fh=sys.__stdout__): + def writeHTMLHand(self): from nevow import tags as T from nevow import flat players_who_act_preflop = (([x[0] for x in self.actions['PREFLOP']]+[x[0] for x in self.actions['BLINDSANTES']]))