From 2fd856d55bd93db87d23bead009dfd2c29e52d56 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 3 Aug 2010 18:24:03 +0800 Subject: [PATCH] HHC: Shorten length of time hh file is open by 2 lines --- pyfpdb/HandHistoryConverter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 59ba90ef..8faf5dfb 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -433,9 +433,9 @@ or None if we fail to get the info """ try: in_fh = codecs.open(self.in_path, 'r', kodec) whole_file = in_fh.read() + in_fh.close() self.obs = whole_file[self.index:] self.index = len(whole_file) - in_fh.close() break except: pass