HHC: Shorten length of time hh file is open by 2 lines

This commit is contained in:
Worros 2010-08-03 18:24:03 +08:00
parent 7d70386c7e
commit 2fd856d55b

View File

@ -433,9 +433,9 @@ or None if we fail to get the info """
try: try:
in_fh = codecs.open(self.in_path, 'r', kodec) in_fh = codecs.open(self.in_path, 'r', kodec)
whole_file = in_fh.read() whole_file = in_fh.read()
in_fh.close()
self.obs = whole_file[self.index:] self.obs = whole_file[self.index:]
self.index = len(whole_file) self.index = len(whole_file)
in_fh.close()
break break
except: except:
pass pass