HHC: Shorten length of time hh file is open by 2 lines
This commit is contained in:
parent
7d70386c7e
commit
2fd856d55b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user