From cd3d4ef835d90fb4d0f517b3d48dd2309e38206a Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Thu, 12 Mar 2009 03:58:42 +0000 Subject: [PATCH] no longer 'safely' appends -- will now overwrite out_path. --- pyfpdb/HandHistoryConverter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 7ed679a4..a627766e 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -90,7 +90,7 @@ class HandHistoryConverter(threading.Thread): else: # TODO: out_path should be sanity checked before opening. Perhaps in fpdb_import? # I'm not sure what we're looking for, although we don't want out_path==in_path!='-' - self.out_fh = open(self.out_path, 'a') #TODO: append may be overly conservative. + self.out_fh = open(self.out_path, 'w') # doomswitch is now on :| self.sitename = sitename self.follow = follow self.compiledPlayers = set()